-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathenv.rb
23 lines (21 loc) · 859 Bytes
/
env.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module Grape
module Env
API_VERSION = 'api.version'.freeze
API_ENDPOINT = 'api.endpoint'.freeze
API_REQUEST_INPUT = 'api.request.input'.freeze
API_REQUEST_BODY = 'api.request.body'.freeze
API_TYPE = 'api.type'.freeze
API_SUBTYPE = 'api.subtype'.freeze
API_VENDOR = 'api.vendor'.freeze
API_FORMAT = 'api.format'.freeze
RACK_INPUT = 'rack.input'.freeze
RACK_REQUEST_QUERY_HASH = 'rack.request.query_hash'.freeze
RACK_REQUEST_FORM_HASH = 'rack.request.form_hash'.freeze
RACK_REQUEST_FORM_INPUT = 'rack.request.form_input'.freeze
GRAPE_REQUEST = 'grape.request'.freeze
GRAPE_REQUEST_HEADERS = 'grape.request.headers'.freeze
GRAPE_REQUEST_PARAMS = 'grape.request.params'.freeze
GRAPE_ROUTING_ARGS = 'grape.routing_args'.freeze
GRAPE_ALLOWED_METHODS = 'grape.allowed_methods'.freeze
end
end