diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-05 13:54:32 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 345da516fae80f24c90c2196e96393b489af2243 (patch) | |
tree | 64d72d25a531626c1d4a6337460dae4e32386f2a /server.ts | |
parent | 297067399db2bf7505561d67667ca0d559a8e42b (diff) | |
download | PeerTube-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.ts | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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...) |
174 | app.use('/services', servicesRouter) | 176 | app.use('/services', servicesRouter) |
175 | 177 | ||
178 | // Plugins & themes | ||
179 | app.use('/plugins', pluginsRouter) | ||
180 | app.use('/themes', themesRouter) | ||
181 | |||
176 | app.use('/', activityPubRouter) | 182 | app.use('/', activityPubRouter) |
177 | app.use('/', feedsRouter) | 183 | app.use('/', feedsRouter) |
178 | app.use('/', webfingerRouter) | 184 | app.use('/', webfingerRouter) |