dblock/slack-amber-alert

View on GitHub
slack-amber-alert/api/endpoints/root_endpoint.rb

Summary

Maintainability
A
0 mins
Test Coverage
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