aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index 3f2d27718..72bb11e74 100644
--- a/server.ts
+++ b/server.ts
@@ -47,7 +47,7 @@ db.init(false).then(() => onDatabaseInitDone())
47// ----------- PeerTube modules ----------- 47// ----------- PeerTube modules -----------
48import { migrate, installApplication } from './server/initializers' 48import { migrate, installApplication } from './server/initializers'
49import { JobScheduler, activateSchedulers, VideosPreviewCache } from './server/lib' 49import { JobScheduler, activateSchedulers, VideosPreviewCache } from './server/lib'
50import { apiRouter, clientsRouter, staticRouter } from './server/controllers' 50import { 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 }))
85const apiRoute = '/api/' + API_VERSION 85const apiRoute = '/api/' + API_VERSION
86app.use(apiRoute, apiRouter) 86app.use(apiRoute, apiRouter)
87 87
88// Services (oembed...)
89app.use('/services', servicesRouter)
90
88// Client files 91// Client files
89app.use('/', clientsRouter) 92app.use('/', clientsRouter)
90 93