diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-17 20:50:02 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-17 20:50:45 +0100 |
commit | 62f4ef413c8ef4269e7cdc21dea0e99ab2191201 (patch) | |
tree | 68d20b6597d154c09f05f5cd414cb5e43d180ccf /server/initializers/constants.js | |
parent | 4145c1c68923c13538a5b60d1b384037d0dded9d (diff) | |
download | PeerTube-62f4ef413c8ef4269e7cdc21dea0e99ab2191201.tar.gz PeerTube-62f4ef413c8ef4269e7cdc21dea0e99ab2191201.tar.zst PeerTube-62f4ef413c8ef4269e7cdc21dea0e99ab2191201.zip |
Server: remote request process refractoring
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r-- | server/initializers/constants.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 97e3c5296..0c080ccd2 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js | |||
@@ -119,6 +119,13 @@ const RETRY_REQUESTS = 5 | |||
119 | const REQUEST_ENDPOINTS = { | 119 | const REQUEST_ENDPOINTS = { |
120 | VIDEOS: 'videos' | 120 | VIDEOS: 'videos' |
121 | } | 121 | } |
122 | const REQUEST_ENDPOINT_ACTIONS = {} | ||
123 | REQUEST_ENDPOINT_ACTIONS[REQUEST_ENDPOINTS.VIDEOS] = { | ||
124 | ADD: 'add', | ||
125 | UPDATE: 'update', | ||
126 | REMOVE: 'remove', | ||
127 | REPORT_ABUSE: 'report-abuse' | ||
128 | } | ||
122 | 129 | ||
123 | const REMOTE_SCHEME = { | 130 | const REMOTE_SCHEME = { |
124 | HTTP: 'https', | 131 | HTTP: 'https', |
@@ -184,6 +191,7 @@ module.exports = { | |||
184 | PREVIEWS_SIZE, | 191 | PREVIEWS_SIZE, |
185 | REMOTE_SCHEME, | 192 | REMOTE_SCHEME, |
186 | REQUEST_ENDPOINTS, | 193 | REQUEST_ENDPOINTS, |
194 | REQUEST_ENDPOINT_ACTIONS, | ||
187 | REQUESTS_IN_PARALLEL, | 195 | REQUESTS_IN_PARALLEL, |
188 | REQUESTS_INTERVAL, | 196 | REQUESTS_INTERVAL, |
189 | REQUESTS_LIMIT_PODS, | 197 | REQUESTS_LIMIT_PODS, |