From 4b4660582b370589f942bf74e2e682e47a9dfa0b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 4 Mar 2017 09:48:35 +0100 Subject: Server: fix requests endpoints --- server/initializers/constants.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'server/initializers') 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 const RETRY_REQUESTS = 5 const REQUEST_ENDPOINTS = { - VIDEOS: 'videos', - QADU: 'videos/qadu', - EVENT: 'videos/events' + VIDEOS: 'videos' } + const REQUEST_ENDPOINT_ACTIONS = {} REQUEST_ENDPOINT_ACTIONS[REQUEST_ENDPOINTS.VIDEOS] = { ADD: 'add', @@ -146,6 +145,9 @@ REQUEST_ENDPOINT_ACTIONS[REQUEST_ENDPOINTS.VIDEOS] = { REPORT_ABUSE: 'report-abuse' } +const REQUEST_VIDEO_QADU_ENDPOINT = 'videos/qadu' +const REQUEST_VIDEO_EVENT_ENDPOINT = 'videos/events' + const REQUEST_VIDEO_QADU_TYPES = { LIKES: 'likes', DISLIKES: 'dislikes', @@ -227,16 +229,18 @@ module.exports = { REMOTE_SCHEME, REQUEST_ENDPOINT_ACTIONS, REQUEST_ENDPOINTS, + REQUEST_VIDEO_EVENT_ENDPOINT, REQUEST_VIDEO_EVENT_TYPES, + REQUEST_VIDEO_QADU_ENDPOINT, REQUEST_VIDEO_QADU_TYPES, REQUESTS_IN_PARALLEL, REQUESTS_INTERVAL, REQUESTS_LIMIT_PER_POD, REQUESTS_LIMIT_PODS, - REQUESTS_VIDEO_QADU_LIMIT_PER_POD, - REQUESTS_VIDEO_QADU_LIMIT_PODS, REQUESTS_VIDEO_EVENT_LIMIT_PER_POD, REQUESTS_VIDEO_EVENT_LIMIT_PODS, + REQUESTS_VIDEO_QADU_LIMIT_PER_POD, + REQUESTS_VIDEO_QADU_LIMIT_PODS, RETRY_REQUESTS, SEARCHABLE_COLUMNS, SIGNATURE_ALGORITHM, -- cgit v1.2.3