Sha256: 7224e6286be9ced01190b61ad13b462d68ec870ea59960f1f06a45df38f6c82b
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gris-0.0.5 | lib/gris/generators/templates/scaffold/app/endpoints/application_endpoint.rb |