Files
gitea/api
officer 0d88a1259b put the plugin's own routes ahead of the proxy's catch-all
/session and /_web/* were both dead. createSidecarProxy registers all('/*')
when it is CALLED, so anything added to proxy.router afterwards never matches —
hono goes in registration order and the wildcard had already claimed
everything.

The symptom was `[gitea] proxy POST /session -> 500`: forwarded to a sidecar
with no such route, answered "internal error", and looking exactly like the
sidecar being broken. Which is what the panel showed.

A comment two lines above the bug claimed these were "registered BEFORE the
proxy's /*". They were not, and writing that down did not make it so.

Now a router of our own with the proxy's mounted under it at the end, so
everything above genuinely wins.
2026-08-19 08:51:46 +00:00
..