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 { JobScheduler, activateSchedulers, VideosPreviewCache } from './server/lib' | 49 | import { JobScheduler, activateSchedulers, VideosPreviewCache } from './server/lib' |
50 | import { apiRouter, clientsRouter, staticRouter } from './server/controllers' | 50 | import { apiRouter, clientsRouter, staticRouter, servicesRouter } from './server/controllers' |
51 | 51 | ||
52 | // ----------- Command line ----------- | 52 | // ----------- Command line ----------- |
53 | 53 | ||
@@ -85,6 +85,9 @@ app.use(bodyParser.urlencoded({ extended: false })) | |||
85 | const apiRoute = '/api/' + API_VERSION | 85 | const apiRoute = '/api/' + API_VERSION |
86 | app.use(apiRoute, apiRouter) | 86 | app.use(apiRoute, apiRouter) |
87 | 87 | ||
88 | // Services (oembed...) | ||
89 | app.use('/services', servicesRouter) | ||
90 | |||
88 | // Client files | 91 | // Client files |
89 | app.use('/', clientsRouter) | 92 | app.use('/', clientsRouter) |
90 | 93 | ||