PeerTube/server/controllers/activitypub/index.ts

18 lines
432 B
TypeScript
Raw Normal View History

2017-11-09 10:51:58 -06:00
import * as express from 'express'
import { badRequest } from '../../helpers'
import { inboxRouter } from './inbox'
2017-11-10 10:27:49 -06:00
import { activityPubClientRouter } from './client'
2017-11-09 10:51:58 -06:00
const remoteRouter = express.Router()
2017-11-13 10:39:41 -06:00
remoteRouter.use('/', inboxRouter)
2017-11-10 10:27:49 -06:00
remoteRouter.use('/', activityPubClientRouter)
2017-11-09 10:51:58 -06:00
remoteRouter.use('/*', badRequest)
// ---------------------------------------------------------------------------
export {
remoteRouter
}