From d8755eed1e452d2efbfc983af0e9d228d152bf6b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 16 Oct 2017 10:05:49 +0200 Subject: Add oembed endpoint --- server.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server.ts') 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()) // ----------- PeerTube modules ----------- import { migrate, installApplication } from './server/initializers' import { JobScheduler, activateSchedulers, VideosPreviewCache } from './server/lib' -import { apiRouter, clientsRouter, staticRouter } from './server/controllers' +import { apiRouter, clientsRouter, staticRouter, servicesRouter } from './server/controllers' // ----------- Command line ----------- @@ -85,6 +85,9 @@ app.use(bodyParser.urlencoded({ extended: false })) const apiRoute = '/api/' + API_VERSION app.use(apiRoute, apiRouter) +// Services (oembed...) +app.use('/services', servicesRouter) + // Client files app.use('/', clientsRouter) -- cgit v1.2.3