mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-14 12:02:27 +08:00
The embedded frontend middleware runs before the gateway routes and only let a few root aliases through. Bare aliases such as /chat/completions, /embeddings, /messages/count_tokens and /models/:model were answered with index.html and HTTP 200 instead of reaching the API handlers. Add every root alias registered in routes/gateway.go to the bypass list. This also covers POST /videos, which the /videos/ prefix did not match. Fixes #7670