diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2024-12-08 11:33:57 -0500 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2024-12-08 11:33:57 -0500 |
| commit | 7c002ce56ef86f8a375275a78c0bda38d540c131 (patch) | |
| tree | 50141866b198b8cbedec7237f742010b3699d0ae /packages/backend/src/server/FileServerService.ts | |
| parent | check for invalid rate limit inputs (diff) | |
| download | sharkey-7c002ce56ef86f8a375275a78c0bda38d540c131.tar.gz sharkey-7c002ce56ef86f8a375275a78c0bda38d540c131.tar.bz2 sharkey-7c002ce56ef86f8a375275a78c0bda38d540c131.zip | |
move all Rate Limit type defs to rate-limit-utils.ts
Diffstat (limited to 'packages/backend/src/server/FileServerService.ts')
| -rw-r--r-- | packages/backend/src/server/FileServerService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/server/FileServerService.ts b/packages/backend/src/server/FileServerService.ts index 9903113f43..3a03cd8c00 100644 --- a/packages/backend/src/server/FileServerService.ts +++ b/packages/backend/src/server/FileServerService.ts @@ -31,8 +31,8 @@ import { handleRequestRedirectToOmitSearch } from '@/misc/fastify-hook-handlers. import { getIpHash } from '@/misc/get-ip-hash.js'; import { AuthenticateService } from '@/server/api/AuthenticateService.js'; import { RoleService } from '@/core/RoleService.js'; -import { RateLimit, SkRateLimiterService } from '@/server/api/SkRateLimiterService.js'; -import { sendRateLimitHeaders } from '@/misc/rate-limit-utils.js'; +import { SkRateLimiterService } from '@/server/api/SkRateLimiterService.js'; +import { RateLimit, sendRateLimitHeaders } from '@/misc/rate-limit-utils.js'; import type { FastifyInstance, FastifyRequest, FastifyReply, FastifyPluginOptions } from 'fastify'; const _filename = fileURLToPath(import.meta.url); |