PeerTube/server/controllers/activitypub/index.ts

18 lines
457 B
TypeScript

import * as express from 'express'
import { badRequest } from '../../helpers'
import { inboxRouter } from './inbox'
import { activityPubClientRouter } from './client'
const activityPubRouter = express.Router()
activityPubRouter.use('/', inboxRouter)
activityPubRouter.use('/', activityPubClientRouter)
activityPubRouter.use('/*', badRequest)
// ---------------------------------------------------------------------------
export {
activityPubRouter
}