aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/v1/index.js5
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)
17router.use('/requests', requestsController) 17router.use('/requests', requestsController)
18router.use('/users', usersController) 18router.use('/users', usersController)
19router.use('/videos', videosController) 19router.use('/videos', videosController)
20router.use('/ping', pong)
20router.use('/*', badRequest) 21router.use('/*', badRequest)
21 22
22// --------------------------------------------------------------------------- 23// ---------------------------------------------------------------------------
@@ -25,6 +26,10 @@ module.exports = router
25 26
26// --------------------------------------------------------------------------- 27// ---------------------------------------------------------------------------
27 28
29function pong (req, res, next) {
30 return res.send('pong').status(200).end()
31}
32
28function badRequest (req, res, next) { 33function badRequest (req, res, next) {
29 res.type('json').status(400).end() 34 res.type('json').status(400).end()
30} 35}