Skip to content

Instantly share code, notes, and snippets.

@Ostrzy
Created February 25, 2014 16:04
Show Gist options
  • Save Ostrzy/9211877 to your computer and use it in GitHub Desktop.
Save Ostrzy/9211877 to your computer and use it in GitHub Desktop.
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