Created
February 25, 2014 16:04
-
-
Save Ostrzy/9211877 to your computer and use it in GitHub Desktop.
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::V1 | |
class Base < Grape::API | |
# Public & base do not define their own namespace in routes | |
# Public is available for every logged in user and captain | |
mount API::V1::Public::Base | |
# Main is available only for users and not for captains | |
mount API::V1::Main::Base | |
# HR panel | |
mount API::V1::HR::Base | |
# Admin panel | |
mount API::V1::Admin::Base | |
add_swagger_documentation base_path: "/api", | |
api_version: 'v1', | |
hide_documentation_path: true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment