slack-amber-alert/api/endpoints/root_endpoint.rb
module Api
module Endpoints
class RootEndpoint < Grape::API
include Api::Helpers::ErrorHelpers
prefix 'api'
format :json
formatter :json, Grape::Formatter::Roar
get do
present self, with: Api::Presenters::RootPresenter
end
mount Api::Endpoints::StatusEndpoint
mount Api::Endpoints::TeamsEndpoint
mount Api::Endpoints::MissingKidsEndpoint
add_swagger_documentation
end
end
end