feat(backend): add fastify api, auth, prisma schema and jobs
This commit is contained in:
8
apps/backend/src/plugins/rate-limit.ts
Normal file
8
apps/backend/src/plugins/rate-limit.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import fp from 'fastify-plugin';
|
||||
import fastifyRateLimit from '@fastify/rate-limit';
|
||||
|
||||
export default fp(async (app) => {
|
||||
await app.register(fastifyRateLimit, {
|
||||
global: false,
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user