Skip to content

Instantly share code, notes, and snippets.

@fnando
Created June 23, 2011 15:07
Show Gist options
  • Save fnando/1042705 to your computer and use it in GitHub Desktop.
Save fnando/1042705 to your computer and use it in GitHub Desktop.
Rack API with catch-all route
require "rack/api"
Rack::API.app do
prefix "/"
get "users" do
[]
end
get "/api(/*catch_all)" do
{:message => "Not Found"}
end
end
run Rack::API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment