mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-22 08:46:54 -06:00
24 lines
675 B
JavaScript
24 lines
675 B
JavaScript
'use strict'
|
|
|
|
const adminMiddleware = require('./admin')
|
|
const oauthMiddleware = require('./oauth')
|
|
const paginationMiddleware = require('./pagination')
|
|
const validatorsMiddleware = require('./validators')
|
|
const searchMiddleware = require('./search')
|
|
const sortMiddleware = require('./sort')
|
|
const secureMiddleware = require('./secure')
|
|
|
|
const middlewares = {
|
|
admin: adminMiddleware,
|
|
oauth: oauthMiddleware,
|
|
pagination: paginationMiddleware,
|
|
search: searchMiddleware,
|
|
secure: secureMiddleware,
|
|
sort: sortMiddleware,
|
|
validators: validatorsMiddleware
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
module.exports = middlewares
|