Skip to content

Instantly share code, notes, and snippets.

@mscoutermarsh
Created November 26, 2012 02:53
Show Gist options
  • Save mscoutermarsh/4146338 to your computer and use it in GitHub Desktop.
Save mscoutermarsh/4146338 to your computer and use it in GitHub Desktop.
Grape - Root API
module API
class Root < Grape::API
prefix "api"
version 'v1', :using => :header, :vendor => 'vendor'
format :json
error_format :json
# load the rest of the API
mount API::Auth
mount API::Tasks
mount API::Lists
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment