mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-05-02 04:00:06 +00:00
add token speed block
This commit is contained in:
parent
e7073790b3
commit
10c69a586b
14 changed files with 900 additions and 369 deletions
|
|
@ -4,7 +4,8 @@ export const apiKeyAuth =
|
|||
(config: any) =>
|
||||
async (req: FastifyRequest, reply: FastifyReply, done: () => void) => {
|
||||
// Public endpoints that don't require authentication
|
||||
if (["/", "/health"].includes(req.url) || req.url.startsWith("/ui")) {
|
||||
const publicPaths = ["/", "/health"];
|
||||
if (publicPaths.includes(req.url) || req.url.startsWith("/ui")) {
|
||||
return done();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue