Server: remove v1 directory, we don't really need it

pull/15/head
Chocobozzz 2016-10-21 12:16:28 +02:00
parent 844e39c2f8
commit f253b1c1f1
8 changed files with 18 additions and 20 deletions

View File

@ -3,7 +3,7 @@
const express = require('express')
const mongoose = require('mongoose')
const constants = require('../../../initializers/constants')
const constants = require('../../initializers/constants')
const Client = mongoose.model('OAuthClient')

View File

@ -4,9 +4,9 @@ const express = require('express')
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

View File

@ -5,10 +5,10 @@ const eachSeries = require('async/eachSeries')
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')

View File

@ -3,8 +3,8 @@
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

View File

@ -5,10 +5,10 @@ const express = require('express')
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

View File

@ -5,10 +5,10 @@ const mongoose = require('mongoose')
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
@ -17,7 +17,7 @@ const validatorsSort = validators.sort
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')

View File

@ -1,8 +1,6 @@
'use strict'
const constants = require('../initializers/constants')
const apiController = require('./api/' + constants.API_VERSION)
const apiController = require('./api/')
module.exports = {
api: apiController