fix: RATE_LIMITER not call jwt (#146)

This commit is contained in:
Dream Hunter
2024-04-21 10:31:45 +08:00
committed by GitHub
parent 91203d7f66
commit 3a35a10523

View File

@@ -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);
});