const express = require('express')
const mongoose = require('mongoose')
-const constants = require('../../../initializers/constants')
+const constants = require('../../initializers/constants')
const Client = mongoose.model('OAuthClient')
const mongoose = require('mongoose')
const waterfall = require('async/waterfall')
-const logger = require('../../../helpers/logger')
-const friends = require('../../../lib/friends')
-const middlewares = require('../../../middlewares')
+const logger = require('../../helpers/logger')
+const friends = require('../../lib/friends')
+const middlewares = require('../../middlewares')
const admin = middlewares.admin
const oAuth = middlewares.oauth
const podsMiddleware = middlewares.pods
const express = require('express')
const mongoose = require('mongoose')
-const middlewares = require('../../../middlewares')
+const middlewares = require('../../middlewares')
const secureMiddleware = middlewares.secure
const validators = middlewares.validators.remote
-const logger = require('../../../helpers/logger')
+const logger = require('../../helpers/logger')
const router = express.Router()
const Video = mongoose.model('Video')
const express = require('express')
const mongoose = require('mongoose')
-const constants = require('../../../initializers/constants')
-const middlewares = require('../../../middlewares')
+const constants = require('../../initializers/constants')
+const middlewares = require('../../middlewares')
const admin = middlewares.admin
const oAuth = middlewares.oauth
const mongoose = require('mongoose')
const waterfall = require('async/waterfall')
-const constants = require('../../../initializers/constants')
-const friends = require('../../../lib/friends')
-const logger = require('../../../helpers/logger')
-const middlewares = require('../../../middlewares')
+const constants = require('../../initializers/constants')
+const friends = require('../../lib/friends')
+const logger = require('../../helpers/logger')
+const middlewares = require('../../middlewares')
const admin = middlewares.admin
const oAuth = middlewares.oauth
const pagination = middlewares.pagination
const multer = require('multer')
const waterfall = require('async/waterfall')
-const constants = require('../../../initializers/constants')
-const logger = require('../../../helpers/logger')
-const friends = require('../../../lib/friends')
-const middlewares = require('../../../middlewares')
+const constants = require('../../initializers/constants')
+const logger = require('../../helpers/logger')
+const friends = require('../../lib/friends')
+const middlewares = require('../../middlewares')
const oAuth = middlewares.oauth
const pagination = middlewares.pagination
const validators = middlewares.validators
const validatorsVideos = validators.videos
const search = middlewares.search
const sort = middlewares.sort
-const utils = require('../../../helpers/utils')
+const utils = require('../../helpers/utils')
const router = express.Router()
const Video = mongoose.model('Video')
'use strict'
-const constants = require('../initializers/constants')
-
-const apiController = require('./api/' + constants.API_VERSION)
+const apiController = require('./api/')
module.exports = {
api: apiController