lib/gris/generators/templates/scaffold/app/endpoints/application_endpoint.rb in gris-0.4.7 vs lib/gris/generators/templates/scaffold/app/endpoints/application_endpoint.rb in gris-0.4.8
- old
+ new
@@ -1,22 +1,9 @@
class ApplicationEndpoint < Grape::API
format :json
formatter :json, Grape::Formatter::Roar
content_type :json, 'application/hal+json'
- 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 individual endpoints.
- #
- before do
- token_authentication!
- end
-
desc 'Get the Root API Endpoint'
get do
present self, with: RootPresenter
end