aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/server.ts b/server.ts
index e25322b66..8e358716e 100644
--- a/server.ts
+++ b/server.ts
@@ -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'
121import { advertiseDoNotTrack } from './server/middlewares/dnt' 121import { 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 225app.use('/api/' + API_VERSION, apiRouter)
226const apiRoute = '/api/' + API_VERSION
227app.use(apiRoute, apiRouter)
228 226
229// Services (oembed...) 227// Services (oembed...)
230app.use('/services', servicesRouter) 228app.use('/services', servicesRouter)
@@ -235,7 +233,7 @@ app.use('/', pluginsRouter)
235app.use('/', activityPubRouter) 233app.use('/', activityPubRouter)
236app.use('/', feedsRouter) 234app.use('/', feedsRouter)
237app.use('/', trackerRouter) 235app.use('/', trackerRouter)
238app.use('/', botsRouter) 236app.use('/', sitemapRouter)
239 237
240// Static files 238// Static files
241app.use('/', staticRouter) 239app.use('/', staticRouter)