lib/goliath/api.rb
# Use to define the 404 routing logic. As well, define any number of other paths to also run the not_found block.
Use to define the 404 routing logic. As well, define any number of other paths to also run the not_found block.
Use to define the 404 routing logic . As well define any number of other paths to also run the not_found block .
def not_found(*other_paths, &block)
        app = ::Rack::Builder.new(&block).to_app
        router.default(app)
        other_paths.each {|path| router.add(path).to(app) }
      end
def not_found ( * other_paths , & block ) app = :: Rack :: Builder . new ( & block ) . to_app router . default ( app ) other_paths . each { | path | router . add ( path ) . to ( app ) } end
Use to define the 404 routing logic.
Use to define the 404 routing logic .
other_paths
block