Created
November 26, 2012 02:53
-
-
Save mscoutermarsh/4146338 to your computer and use it in GitHub Desktop.
Grape - Root API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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