mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-17 23:27:37 +08:00
fix: RATE_LIMITER not call jwt (#146)
This commit is contained in:
@@ -30,9 +30,11 @@ app.use('/api/*', async (c, next) => {
|
||||
return c.text(`IP=${reqIp} Rate limit exceeded for ${c.req.path}`, 429)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (c.req.path.startsWith("/api/new_address")) {
|
||||
await next();
|
||||
return;
|
||||
};
|
||||
}
|
||||
return jwt({ secret: c.env.JWT_SECRET })(c, next);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user