Sha256: 4825f5880952262402e47ccbe17e4bfca2914739dad471f0f57eb8eeff6d49e7
Contents?: true
Size: 524 Bytes
Versions: 2
Compression:
Stored size: 524 Bytes
Contents
class ApplicationEndpoint < Grape::API format :json formatter :json, Grape::Formatter::Roar helpers do include Gris::AuthenticationHelpers end # Adds a simple environment variable based # token authentication scheme to your endpoints. # Alternatively, this token_authentication! # method can be added to inddividual endpoints. # before do token_authentication! end desc 'Get the Root API Endpoint' get do present self, with: RootPresenter end # Additional mounted endpoints end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gris-0.0.7 | lib/gris/generators/templates/scaffold/app/endpoints/application_endpoint.rb |
gris-0.0.6 | lib/gris/generators/templates/scaffold/app/endpoints/application_endpoint.rb |