diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-16 10:05:49 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-16 10:07:26 +0200 |
commit | d8755eed1e452d2efbfc983af0e9d228d152bf6b (patch) | |
tree | db94181e7c993f67919f4ea2bb12f08401c437c2 /server.ts | |
parent | 334ddfa47120ae53bc2643792ec5e1065a4d1141 (diff) | |
download | PeerTube-d8755eed1e452d2efbfc983af0e9d228d152bf6b.tar.gz PeerTube-d8755eed1e452d2efbfc983af0e9d228d152bf6b.tar.zst PeerTube-d8755eed1e452d2efbfc983af0e9d228d152bf6b.zip |
Add oembed endpoint
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 | ||