diff options
Diffstat (limited to 'server/controllers/api/abuse.ts')
-rw-r--r-- | server/controllers/api/abuse.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/controllers/api/abuse.ts b/server/controllers/api/abuse.ts index d6211cc83..d582f198d 100644 --- a/server/controllers/api/abuse.ts +++ b/server/controllers/api/abuse.ts | |||
@@ -16,6 +16,7 @@ import { | |||
16 | abusesSortValidator, | 16 | abusesSortValidator, |
17 | abuseUpdateValidator, | 17 | abuseUpdateValidator, |
18 | addAbuseMessageValidator, | 18 | addAbuseMessageValidator, |
19 | apiRateLimiter, | ||
19 | asyncMiddleware, | 20 | asyncMiddleware, |
20 | asyncRetryTransactionMiddleware, | 21 | asyncRetryTransactionMiddleware, |
21 | authenticate, | 22 | authenticate, |
@@ -32,6 +33,8 @@ import { AccountModel } from '../../models/account/account' | |||
32 | 33 | ||
33 | const abuseRouter = express.Router() | 34 | const abuseRouter = express.Router() |
34 | 35 | ||
36 | abuseRouter.use(apiRateLimiter) | ||
37 | |||
35 | abuseRouter.get('/', | 38 | abuseRouter.get('/', |
36 | openapiOperationDoc({ operationId: 'getAbuses' }), | 39 | openapiOperationDoc({ operationId: 'getAbuses' }), |
37 | authenticate, | 40 | authenticate, |