mirror of https://github.com/Chocobozzz/PeerTube
Server: remove v1 directory, we don't really need it
parent
844e39c2f8
commit
f253b1c1f1
|
@ -3,7 +3,7 @@
|
||||||
const express = require('express')
|
const express = require('express')
|
||||||
const mongoose = require('mongoose')
|
const mongoose = require('mongoose')
|
||||||
|
|
||||||
const constants = require('../../../initializers/constants')
|
const constants = require('../../initializers/constants')
|
||||||
|
|
||||||
const Client = mongoose.model('OAuthClient')
|
const Client = mongoose.model('OAuthClient')
|
||||||
|
|
|
@ -4,9 +4,9 @@ const express = require('express')
|
||||||
const mongoose = require('mongoose')
|
const mongoose = require('mongoose')
|
||||||
const waterfall = require('async/waterfall')
|
const waterfall = require('async/waterfall')
|
||||||
|
|
||||||
const logger = require('../../../helpers/logger')
|
const logger = require('../../helpers/logger')
|
||||||
const friends = require('../../../lib/friends')
|
const friends = require('../../lib/friends')
|
||||||
const middlewares = require('../../../middlewares')
|
const middlewares = require('../../middlewares')
|
||||||
const admin = middlewares.admin
|
const admin = middlewares.admin
|
||||||
const oAuth = middlewares.oauth
|
const oAuth = middlewares.oauth
|
||||||
const podsMiddleware = middlewares.pods
|
const podsMiddleware = middlewares.pods
|
|
@ -5,10 +5,10 @@ const eachSeries = require('async/eachSeries')
|
||||||
const express = require('express')
|
const express = require('express')
|
||||||
const mongoose = require('mongoose')
|
const mongoose = require('mongoose')
|
||||||
|
|
||||||
const middlewares = require('../../../middlewares')
|
const middlewares = require('../../middlewares')
|
||||||
const secureMiddleware = middlewares.secure
|
const secureMiddleware = middlewares.secure
|
||||||
const validators = middlewares.validators.remote
|
const validators = middlewares.validators.remote
|
||||||
const logger = require('../../../helpers/logger')
|
const logger = require('../../helpers/logger')
|
||||||
|
|
||||||
const router = express.Router()
|
const router = express.Router()
|
||||||
const Video = mongoose.model('Video')
|
const Video = mongoose.model('Video')
|
|
@ -3,8 +3,8 @@
|
||||||
const express = require('express')
|
const express = require('express')
|
||||||
const mongoose = require('mongoose')
|
const mongoose = require('mongoose')
|
||||||
|
|
||||||
const constants = require('../../../initializers/constants')
|
const constants = require('../../initializers/constants')
|
||||||
const middlewares = require('../../../middlewares')
|
const middlewares = require('../../middlewares')
|
||||||
const admin = middlewares.admin
|
const admin = middlewares.admin
|
||||||
const oAuth = middlewares.oauth
|
const oAuth = middlewares.oauth
|
||||||
|
|
|
@ -5,10 +5,10 @@ const express = require('express')
|
||||||
const mongoose = require('mongoose')
|
const mongoose = require('mongoose')
|
||||||
const waterfall = require('async/waterfall')
|
const waterfall = require('async/waterfall')
|
||||||
|
|
||||||
const constants = require('../../../initializers/constants')
|
const constants = require('../../initializers/constants')
|
||||||
const friends = require('../../../lib/friends')
|
const friends = require('../../lib/friends')
|
||||||
const logger = require('../../../helpers/logger')
|
const logger = require('../../helpers/logger')
|
||||||
const middlewares = require('../../../middlewares')
|
const middlewares = require('../../middlewares')
|
||||||
const admin = middlewares.admin
|
const admin = middlewares.admin
|
||||||
const oAuth = middlewares.oauth
|
const oAuth = middlewares.oauth
|
||||||
const pagination = middlewares.pagination
|
const pagination = middlewares.pagination
|
|
@ -5,10 +5,10 @@ const mongoose = require('mongoose')
|
||||||
const multer = require('multer')
|
const multer = require('multer')
|
||||||
const waterfall = require('async/waterfall')
|
const waterfall = require('async/waterfall')
|
||||||
|
|
||||||
const constants = require('../../../initializers/constants')
|
const constants = require('../../initializers/constants')
|
||||||
const logger = require('../../../helpers/logger')
|
const logger = require('../../helpers/logger')
|
||||||
const friends = require('../../../lib/friends')
|
const friends = require('../../lib/friends')
|
||||||
const middlewares = require('../../../middlewares')
|
const middlewares = require('../../middlewares')
|
||||||
const oAuth = middlewares.oauth
|
const oAuth = middlewares.oauth
|
||||||
const pagination = middlewares.pagination
|
const pagination = middlewares.pagination
|
||||||
const validators = middlewares.validators
|
const validators = middlewares.validators
|
||||||
|
@ -17,7 +17,7 @@ const validatorsSort = validators.sort
|
||||||
const validatorsVideos = validators.videos
|
const validatorsVideos = validators.videos
|
||||||
const search = middlewares.search
|
const search = middlewares.search
|
||||||
const sort = middlewares.sort
|
const sort = middlewares.sort
|
||||||
const utils = require('../../../helpers/utils')
|
const utils = require('../../helpers/utils')
|
||||||
|
|
||||||
const router = express.Router()
|
const router = express.Router()
|
||||||
const Video = mongoose.model('Video')
|
const Video = mongoose.model('Video')
|
|
@ -1,8 +1,6 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const constants = require('../initializers/constants')
|
const apiController = require('./api/')
|
||||||
|
|
||||||
const apiController = require('./api/' + constants.API_VERSION)
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
api: apiController
|
api: apiController
|
||||||
|
|
Loading…
Reference in New Issue