diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -115,7 +115,7 @@ import { | |||
115 | pluginsRouter, | 115 | pluginsRouter, |
116 | trackerRouter, | 116 | trackerRouter, |
117 | createWebsocketTrackerServer, | 117 | createWebsocketTrackerServer, |
118 | botsRouter, | 118 | sitemapRouter, |
119 | downloadRouter | 119 | downloadRouter |
120 | } from './server/controllers' | 120 | } from './server/controllers' |
121 | import { advertiseDoNotTrack } from './server/middlewares/dnt' | 121 | import { advertiseDoNotTrack } from './server/middlewares/dnt' |
@@ -222,9 +222,7 @@ OpenTelemetryMetrics.Instance.init(app) | |||
222 | 222 | ||
223 | // ----------- Views, routes and static files ----------- | 223 | // ----------- Views, routes and static files ----------- |
224 | 224 | ||
225 | // API | 225 | app.use('/api/' + API_VERSION, apiRouter) |
226 | const apiRoute = '/api/' + API_VERSION | ||
227 | app.use(apiRoute, apiRouter) | ||
228 | 226 | ||
229 | // Services (oembed...) | 227 | // Services (oembed...) |
230 | app.use('/services', servicesRouter) | 228 | app.use('/services', servicesRouter) |
@@ -235,7 +233,7 @@ app.use('/', pluginsRouter) | |||
235 | app.use('/', activityPubRouter) | 233 | app.use('/', activityPubRouter) |
236 | app.use('/', feedsRouter) | 234 | app.use('/', feedsRouter) |
237 | app.use('/', trackerRouter) | 235 | app.use('/', trackerRouter) |
238 | app.use('/', botsRouter) | 236 | app.use('/', sitemapRouter) |
239 | 237 | ||
240 | // Static files | 238 | // Static files |
241 | app.use('/', staticRouter) | 239 | app.use('/', staticRouter) |