aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/v1/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/v1/index.js')
-rw-r--r--server/controllers/api/v1/index.js35
1 files changed, 0 insertions, 35 deletions
diff --git a/server/controllers/api/v1/index.js b/server/controllers/api/v1/index.js
deleted file mode 100644
index 4cb65ed55..000000000
--- a/server/controllers/api/v1/index.js
+++ /dev/null
@@ -1,35 +0,0 @@
1'use strict'
2
3const express = require('express')
4
5const router = express.Router()
6
7const clientsController = require('./clients')
8const podsController = require('./pods')
9const remoteController = require('./remote')
10const requestsController = require('./requests')
11const usersController = require('./users')
12const videosController = require('./videos')
13
14router.use('/clients', clientsController)
15router.use('/pods', podsController)
16router.use('/remote', remoteController)
17router.use('/requests', requestsController)
18router.use('/users', usersController)
19router.use('/videos', videosController)
20router.use('/ping', pong)
21router.use('/*', badRequest)
22
23// ---------------------------------------------------------------------------
24
25module.exports = router
26
27// ---------------------------------------------------------------------------
28
29function pong (req, res, next) {
30 return res.send('pong').status(200).end()
31}
32
33function badRequest (req, res, next) {
34 res.type('json').status(400).end()
35}