diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -69,7 +69,15 @@ import { installApplication } from './server/initializers' | |||
69 | import { Emailer } from './server/lib/emailer' | 69 | import { Emailer } from './server/lib/emailer' |
70 | import { JobQueue } from './server/lib/job-queue' | 70 | import { JobQueue } from './server/lib/job-queue' |
71 | import { VideosPreviewCache } from './server/lib/cache' | 71 | import { VideosPreviewCache } from './server/lib/cache' |
72 | import { apiRouter, clientsRouter, staticRouter, servicesRouter, webfingerRouter, activityPubRouter } from './server/controllers' | 72 | import { |
73 | activityPubRouter, | ||
74 | apiRouter, | ||
75 | clientsRouter, | ||
76 | feedsRouter, | ||
77 | staticRouter, | ||
78 | servicesRouter, | ||
79 | webfingerRouter | ||
80 | } from './server/controllers' | ||
73 | import { Redis } from './server/lib/redis' | 81 | import { Redis } from './server/lib/redis' |
74 | import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler' | 82 | import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler' |
75 | import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler' | 83 | import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler' |
@@ -144,8 +152,9 @@ app.use(apiRoute, apiRouter) | |||
144 | // Services (oembed...) | 152 | // Services (oembed...) |
145 | app.use('/services', servicesRouter) | 153 | app.use('/services', servicesRouter) |
146 | 154 | ||
147 | app.use('/', webfingerRouter) | ||
148 | app.use('/', activityPubRouter) | 155 | app.use('/', activityPubRouter) |
156 | app.use('/', feedsRouter) | ||
157 | app.use('/', webfingerRouter) | ||
149 | 158 | ||
150 | // Client files | 159 | // Client files |
151 | app.use('/', clientsRouter) | 160 | app.use('/', clientsRouter) |