Module: Grape::Middleware::Helpers

Included in:
Auth::Base, Base
Defined in:
lib/grape/middleware/helpers.rb

Overview

Common methods for all types of Grape middleware

Instance Method Summary collapse

Instance Method Details

#contextObject


7
8
9
# File 'lib/grape/middleware/helpers.rb', line 7

def context
  env[Grape::Env::API_ENDPOINT]
end