diff options
Diffstat (limited to 'server/controllers/api/v1')
-rw-r--r-- | server/controllers/api/v1/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/controllers/api/v1/index.js b/server/controllers/api/v1/index.js index 2e4fb2dab..4cb65ed55 100644 --- a/server/controllers/api/v1/index.js +++ b/server/controllers/api/v1/index.js | |||
@@ -17,6 +17,7 @@ router.use('/remote', remoteController) | |||
17 | router.use('/requests', requestsController) | 17 | router.use('/requests', requestsController) |
18 | router.use('/users', usersController) | 18 | router.use('/users', usersController) |
19 | router.use('/videos', videosController) | 19 | router.use('/videos', videosController) |
20 | router.use('/ping', pong) | ||
20 | router.use('/*', badRequest) | 21 | router.use('/*', badRequest) |
21 | 22 | ||
22 | // --------------------------------------------------------------------------- | 23 | // --------------------------------------------------------------------------- |
@@ -25,6 +26,10 @@ module.exports = router | |||
25 | 26 | ||
26 | // --------------------------------------------------------------------------- | 27 | // --------------------------------------------------------------------------- |
27 | 28 | ||
29 | function pong (req, res, next) { | ||
30 | return res.send('pong').status(200).end() | ||
31 | } | ||
32 | |||
28 | function badRequest (req, res, next) { | 33 | function badRequest (req, res, next) { |
29 | res.type('json').status(400).end() | 34 | res.type('json').status(400).end() |
30 | } | 35 | } |