mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 14:44:15 +00:00
fix: disable /random route cache
This commit is contained in:
parent
1006ae83f8
commit
def387d811
3 changed files with 17 additions and 6 deletions
|
|
@ -5,7 +5,7 @@ import { prisma } from "@/lib/prisma";
|
|||
import { RateLimit } from "@/lib/rate-limit";
|
||||
|
||||
export async function GET(request: NextRequest) {
|
||||
const rateLimit = new RateLimit(request, 16);
|
||||
const rateLimit = new RateLimit(request, 20);
|
||||
const check = await rateLimit.handle();
|
||||
if (check) return check;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue