aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/remote/index.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-12-30 12:53:41 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-12-30 12:53:41 +0100
commita6fd2b30bf717eec14972a2175354781f5f43e77 (patch)
tree0a4fcd68e5630cf4a3274d087b4be54beac64bfa /server/controllers/api/remote/index.js
parent8fd66b75bfbd8fd4945f1944411461b05eb74795 (diff)
downloadPeerTube-a6fd2b30bf717eec14972a2175354781f5f43e77.tar.gz
PeerTube-a6fd2b30bf717eec14972a2175354781f5f43e77.tar.zst
PeerTube-a6fd2b30bf717eec14972a2175354781f5f43e77.zip
Server: move remote routes in their own directory
Diffstat (limited to 'server/controllers/api/remote/index.js')
-rw-r--r--server/controllers/api/remote/index.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/server/controllers/api/remote/index.js b/server/controllers/api/remote/index.js
new file mode 100644
index 000000000..2947632d5
--- /dev/null
+++ b/server/controllers/api/remote/index.js
@@ -0,0 +1,16 @@
1'use strict'
2
3const express = require('express')
4
5const utils = require('../../../helpers/utils')
6
7const router = express.Router()
8
9const videosRemoteController = require('./videos')
10
11router.use('/videos', videosRemoteController)
12router.use('/*', utils.badRequest)
13
14// ---------------------------------------------------------------------------
15
16module.exports = router