Files
romm/backend
Michael Manganiello 8abbae4c02 misc: Make backend handle URLs with trailing slash
According to multiple FastAPI discussions [1], FastAPI only includes a
built-in mechanism to redirect requests including a trailing slash, to
its variation without slash, using a `307` status code.

This can be an issue when certain clients do not send the same headers
on the redirected request.

This change adds a custom FastAPI `APIRouter`, that registers both route
path variations (with and without trailing slash), while only marking
the path without slash for being included in the OpenAPI schema.

[1] https://github.com/fastapi/fastapi/discussions/7298
2024-08-07 00:22:21 -03:00
..
2024-05-21 17:10:11 -04:00
2024-05-24 12:01:47 -04:00
2024-07-25 19:53:44 -04:00
2024-02-02 17:09:45 -05:00
2024-02-10 12:43:39 -05:00
2024-05-21 10:18:13 -04:00
2024-05-21 10:18:13 -04:00
2024-05-21 10:18:13 -04:00