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
zurdi
8a2a4d6099
fixes from trunk
2024-07-04 23:54:18 +02:00
zurdi
3d27a05c22
fixes from trunk
2024-07-04 23:47:14 +02:00
zurdi
4b81c01140
fixed tests
2024-07-04 22:26:35 +02:00
zurdi
2ec4debd61
setup wizard added
2024-07-04 14:19:00 +02:00
zurdi
1d6ba70080
collections get_roms endpoint added
2024-07-02 14:31:27 +02:00
Georges-Antoine Assi
7530fdd576
mega refactor of pr
2024-07-01 15:12:07 -04:00
zurdi
4749bf84c6
atomic update user_rom_props
2024-06-30 01:50:08 +02:00
Zurdi
d3381e16b0
Update backend/handler/auth/base_handler.py
...
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com >
2024-06-29 18:20:01 +02:00
Zurdi
c022e9cef7
added user_rom_props entity
2024-06-29 00:13:28 +02:00
Michael Manganiello
33ac3ca56d
misc: Apply changes generated by pyupgrade
...
Changes automatically made by
[`pyupgrade`](https://github.com/asottile/pyupgrade ), using the
`--py311-plus` flag, to be compatible with Python 3.11.
2024-06-23 18:17:08 -03:00
zurdi
d3fd75bff4
format from trunk
2024-06-18 19:20:26 +02:00
Hsiaoming Yang
5d82be1ca4
use OctKey directly to prevent joserfc deprecate message
2024-06-14 17:13:36 +09:00
Georges-Antoine Assi
b2085f87a8
bunch of fixes for trunk
2024-05-21 17:10:11 -04:00
Georges-Antoine Assi
a7cf0d389a
run trunk format on all files
2024-05-21 10:18:13 -04:00
Georges-Antoine Assi
880345f20c
ruff-only pre-commit
2024-05-18 12:05:57 -04:00
Georges-Antoine Assi
2756121f06
Merge branch 'master' into python-pkg-drop
2024-05-14 09:22:59 -04:00
Georges-Antoine Assi
da784fc7ab
Merge branch 'master' into firmware-bios-support
2024-05-13 09:13:55 -04:00
Georges-Antoine Assi
2749aaee4a
rename back to old names
2024-05-05 16:59:30 -04:00
Georges-Antoine Assi
9ad28f3294
more refactoring again
2024-05-05 16:32:40 -04:00