aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-03-04 09:48:35 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-03-04 09:48:35 +0100
commit4b4660582b370589f942bf74e2e682e47a9dfa0b (patch)
tree6b2c13e951171f2593fe78fb3053f7d6c1634823 /server/initializers
parent72329aaa28bcbb678443900233cc47cff7ba1509 (diff)
downloadPeerTube-4b4660582b370589f942bf74e2e682e47a9dfa0b.tar.gz
PeerTube-4b4660582b370589f942bf74e2e682e47a9dfa0b.tar.zst
PeerTube-4b4660582b370589f942bf74e2e682e47a9dfa0b.zip
Server: fix requests endpoints
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index e33229163..2d5bb84cc 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -134,10 +134,9 @@ const REQUESTS_VIDEO_EVENT_LIMIT_PER_POD = 50
134const RETRY_REQUESTS = 5 134const RETRY_REQUESTS = 5
135 135
136const REQUEST_ENDPOINTS = { 136const REQUEST_ENDPOINTS = {
137 VIDEOS: 'videos', 137 VIDEOS: 'videos'
138 QADU: 'videos/qadu',
139 EVENT: 'videos/events'
140} 138}
139
141const REQUEST_ENDPOINT_ACTIONS = {} 140const REQUEST_ENDPOINT_ACTIONS = {}
142REQUEST_ENDPOINT_ACTIONS[REQUEST_ENDPOINTS.VIDEOS] = { 141REQUEST_ENDPOINT_ACTIONS[REQUEST_ENDPOINTS.VIDEOS] = {
143 ADD: 'add', 142 ADD: 'add',
@@ -146,6 +145,9 @@ REQUEST_ENDPOINT_ACTIONS[REQUEST_ENDPOINTS.VIDEOS] = {
146 REPORT_ABUSE: 'report-abuse' 145 REPORT_ABUSE: 'report-abuse'
147} 146}
148 147
148const REQUEST_VIDEO_QADU_ENDPOINT = 'videos/qadu'
149const REQUEST_VIDEO_EVENT_ENDPOINT = 'videos/events'
150
149const REQUEST_VIDEO_QADU_TYPES = { 151const REQUEST_VIDEO_QADU_TYPES = {
150 LIKES: 'likes', 152 LIKES: 'likes',
151 DISLIKES: 'dislikes', 153 DISLIKES: 'dislikes',
@@ -227,16 +229,18 @@ module.exports = {
227 REMOTE_SCHEME, 229 REMOTE_SCHEME,
228 REQUEST_ENDPOINT_ACTIONS, 230 REQUEST_ENDPOINT_ACTIONS,
229 REQUEST_ENDPOINTS, 231 REQUEST_ENDPOINTS,
232 REQUEST_VIDEO_EVENT_ENDPOINT,
230 REQUEST_VIDEO_EVENT_TYPES, 233 REQUEST_VIDEO_EVENT_TYPES,
234 REQUEST_VIDEO_QADU_ENDPOINT,
231 REQUEST_VIDEO_QADU_TYPES, 235 REQUEST_VIDEO_QADU_TYPES,
232 REQUESTS_IN_PARALLEL, 236 REQUESTS_IN_PARALLEL,
233 REQUESTS_INTERVAL, 237 REQUESTS_INTERVAL,
234 REQUESTS_LIMIT_PER_POD, 238 REQUESTS_LIMIT_PER_POD,
235 REQUESTS_LIMIT_PODS, 239 REQUESTS_LIMIT_PODS,
236 REQUESTS_VIDEO_QADU_LIMIT_PER_POD,
237 REQUESTS_VIDEO_QADU_LIMIT_PODS,
238 REQUESTS_VIDEO_EVENT_LIMIT_PER_POD, 240 REQUESTS_VIDEO_EVENT_LIMIT_PER_POD,
239 REQUESTS_VIDEO_EVENT_LIMIT_PODS, 241 REQUESTS_VIDEO_EVENT_LIMIT_PODS,
242 REQUESTS_VIDEO_QADU_LIMIT_PER_POD,
243 REQUESTS_VIDEO_QADU_LIMIT_PODS,
240 RETRY_REQUESTS, 244 RETRY_REQUESTS,
241 SEARCHABLE_COLUMNS, 245 SEARCHABLE_COLUMNS,
242 SIGNATURE_ALGORITHM, 246 SIGNATURE_ALGORITHM,