diff options
Diffstat (limited to 'server/controllers/api/custom-page.ts')
-rw-r--r-- | server/controllers/api/custom-page.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/controllers/api/custom-page.ts b/server/controllers/api/custom-page.ts index d1c672f3f..f4e1a0e79 100644 --- a/server/controllers/api/custom-page.ts +++ b/server/controllers/api/custom-page.ts | |||
@@ -2,10 +2,12 @@ import express from 'express' | |||
2 | import { ServerConfigManager } from '@server/lib/server-config-manager' | 2 | import { ServerConfigManager } from '@server/lib/server-config-manager' |
3 | import { ActorCustomPageModel } from '@server/models/account/actor-custom-page' | 3 | import { ActorCustomPageModel } from '@server/models/account/actor-custom-page' |
4 | import { HttpStatusCode, UserRight } from '@shared/models' | 4 | import { HttpStatusCode, UserRight } from '@shared/models' |
5 | import { asyncMiddleware, authenticate, ensureUserHasRight } from '../../middlewares' | 5 | import { apiRateLimiter, asyncMiddleware, authenticate, ensureUserHasRight } from '../../middlewares' |
6 | 6 | ||
7 | const customPageRouter = express.Router() | 7 | const customPageRouter = express.Router() |
8 | 8 | ||
9 | customPageRouter.use(apiRateLimiter) | ||
10 | |||
9 | customPageRouter.get('/homepage/instance', | 11 | customPageRouter.get('/homepage/instance', |
10 | asyncMiddleware(getInstanceHomepage) | 12 | asyncMiddleware(getInstanceHomepage) |
11 | ) | 13 | ) |