diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -47,7 +47,7 @@ db.init(false).then(() => onDatabaseInitDone()) | |||
47 | // ----------- PeerTube modules ----------- | 47 | // ----------- PeerTube modules ----------- |
48 | import { migrate, installApplication } from './server/initializers' | 48 | import { migrate, installApplication } from './server/initializers' |
49 | import { httpRequestJobScheduler, transcodingJobScheduler, VideosPreviewCache } from './server/lib' | 49 | import { httpRequestJobScheduler, transcodingJobScheduler, VideosPreviewCache } from './server/lib' |
50 | import { apiRouter, clientsRouter, staticRouter, servicesRouter } from './server/controllers' | 50 | import { apiRouter, clientsRouter, staticRouter, servicesRouter, webfingerRouter, activityPubRouter } from './server/controllers' |
51 | 51 | ||
52 | // ----------- Command line ----------- | 52 | // ----------- Command line ----------- |
53 | 53 | ||
@@ -115,6 +115,9 @@ app.use(apiRoute, apiRouter) | |||
115 | // Services (oembed...) | 115 | // Services (oembed...) |
116 | app.use('/services', servicesRouter) | 116 | app.use('/services', servicesRouter) |
117 | 117 | ||
118 | app.use('/', webfingerRouter) | ||
119 | app.use('/', activityPubRouter) | ||
120 | |||
118 | // Client files | 121 | // Client files |
119 | app.use('/', clientsRouter) | 122 | app.use('/', clientsRouter) |
120 | 123 | ||