Extends the search feature by customizing the search field (name,
[oweals/peertube.git] / server / middlewares / index.js
1 'use strict'
2
3 const oauth2 = require('./oauth2')
4 const pagination = require('./pagination')
5 const reqValidatorsMiddleware = require('./reqValidators')
6 const search = require('./search')
7 const sort = require('./sort')
8 const secureMiddleware = require('./secure')
9
10 const middlewares = {
11   oauth2: oauth2,
12   pagination: pagination,
13   reqValidators: reqValidatorsMiddleware,
14   search: search,
15   sort: sort,
16   secure: secureMiddleware
17 }
18
19 // ---------------------------------------------------------------------------
20
21 module.exports = middlewares