aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-05 13:54:32 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commit345da516fae80f24c90c2196e96393b489af2243 (patch)
tree64d72d25a531626c1d4a6337460dae4e32386f2a /server.ts
parent297067399db2bf7505561d67667ca0d559a8e42b (diff)
downloadPeerTube-345da516fae80f24c90c2196e96393b489af2243.tar.gz
PeerTube-345da516fae80f24c90c2196e96393b489af2243.tar.zst
PeerTube-345da516fae80f24c90c2196e96393b489af2243.zip
WIP plugins: add ability to register plugins
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/server.ts b/server.ts
index 9f0b123e0..2f5f39db2 100644
--- a/server.ts
+++ b/server.ts
@@ -94,6 +94,8 @@ import {
94 feedsRouter, 94 feedsRouter,
95 staticRouter, 95 staticRouter,
96 servicesRouter, 96 servicesRouter,
97 pluginsRouter,
98 themesRouter,
97 webfingerRouter, 99 webfingerRouter,
98 trackerRouter, 100 trackerRouter,
99 createWebsocketTrackerServer, botsRouter 101 createWebsocketTrackerServer, botsRouter
@@ -173,6 +175,10 @@ app.use(apiRoute, apiRouter)
173// Services (oembed...) 175// Services (oembed...)
174app.use('/services', servicesRouter) 176app.use('/services', servicesRouter)
175 177
178// Plugins & themes
179app.use('/plugins', pluginsRouter)
180app.use('/themes', themesRouter)
181
176app.use('/', activityPubRouter) 182app.use('/', activityPubRouter)
177app.use('/', feedsRouter) 183app.use('/', feedsRouter)
178app.use('/', webfingerRouter) 184app.use('/', webfingerRouter)