X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server.ts;h=84535c7a5ab5e53bfacc23fb7b82e2ce90a93779;hb=83c663ef0e94242762ed5f6d2875fc55f4a5603e;hp=0878fe757e8af06c96f2723c59524bb7c197cc9f;hpb=571389d43b8fc8aaf27e77c06f19b320b08dbbc9;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server.ts b/server.ts index 0878fe757..84535c7a5 100644 --- a/server.ts +++ b/server.ts @@ -46,8 +46,8 @@ db.init(false).then(() => onDatabaseInitDone()) // ----------- PeerTube modules ----------- import { migrate, installApplication } from './server/initializers' -import { httpRequestJobScheduler, transcodingJobScheduler, VideosPreviewCache } from './server/lib' -import { apiRouter, clientsRouter, staticRouter, servicesRouter } from './server/controllers' +import { activitypubHttpJobScheduler, transcodingJobScheduler, VideosPreviewCache } from './server/lib' +import { apiRouter, clientsRouter, staticRouter, servicesRouter, webfingerRouter, activityPubRouter } from './server/controllers' // ----------- Command line ----------- @@ -115,6 +115,9 @@ app.use(apiRoute, apiRouter) // Services (oembed...) app.use('/services', servicesRouter) +app.use('/', webfingerRouter) +app.use('/', activityPubRouter) + // Client files app.use('/', clientsRouter) @@ -151,7 +154,7 @@ function onDatabaseInitDone () { // ----------- Make the server listening ----------- server.listen(port, () => { VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE) - httpRequestJobScheduler.activate() + activitypubHttpJobScheduler.activate() transcodingJobScheduler.activate() logger.info('Server listening on port %d', port)