mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-07-12 16:02:10 +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)
|
return c.text(`IP=${reqIp} Rate limit exceeded for ${c.req.path}`, 429)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (c.req.path.startsWith("/api/new_address")) {
|
||||||
await next();
|
await next();
|
||||||
return;
|
return;
|
||||||
};
|
}
|
||||||
return jwt({ secret: c.env.JWT_SECRET })(c, next);
|
return jwt({ secret: c.env.JWT_SECRET })(c, next);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user