feat(security): extend rateLimit to support named categories with 5 tiers

This commit is contained in:
2026-05-15 00:39:35 +08:00
parent 0cda534825
commit e908880834
2 changed files with 16 additions and 6 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ export const app = new Elysia({ prefix: "/api" })
error: code === "NOT_FOUND" ? "Not found" : "Internal server error",
}
})
.use(rateLimit(60, 100))
.use(rateLimit("default"))
.use(betterAuth)
// Health
.use(healthRoutes)