-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconstants.js
43 lines (39 loc) · 1.88 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"use strict";
/* globals module */
module.exports.ALLOWED_METHODS = ["GET",
"POST",
"PUT",
"DELETE",
"OPTIONS"];
module.exports.ALLOWED_HEADERS = ["Accept",
"Accept-Version",
"Api-Version",
"Content-Type",
"Origin",
"Range",
"X_FILENAME",
"X-Access-Key",
"X-Access-Token",
"X-Append",
"X-Encrypted",
"X-Private",
"X-Replacement-Access-Key",
"X-Requested-With",
"X-Executable"];
module.exports.EXPOSED_HEADERS = ["X-Media-Bitrate",
"X-Media-Channels",
"X-Media-Duration",
"X-Media-Resolution",
"X-Media-Size",
"X-Media-Type"];
module.exports.ACCEPTED_PARAMS = [{"access_key": "x"},
{"access_token": "x"},
{"block_only": "x"},
{"content_type": undefined},
{"encrypted": "x"},
{"expires": "x"},
{"inode_only": "x"},
{"private": "x"},
{"replacement_access_key": "x"},
{"version": "x"},
{"executable":"x"}];