Commit Graph

57 Commits

Author SHA1 Message Date
Georges-Antoine Assi
8078941bd1 [ROMM-2856] Use platform slug to fetch feed games 2026-01-03 12:38:26 -05:00
zurdi
ab637203ac Merge branch 'master' into feat/rom-filter-multivalue 2025-12-24 12:39:45 +00:00
Georges-Antoine Assi
562d976a3e [ROMM-2668] Speedup feeds endpoint 2025-12-09 21:11:11 -05:00
zurdi
19fe6518fc Refactor: update get_roms_scalar calls to support multi-value platform IDs 2025-11-28 16:57:07 +00:00
zurdi
c1d43f67f8 Refactor ROM retrieval to support multi-value platform filtering across various handlers and endpoints 2025-11-27 22:52:33 +00:00
Georges-Antoine Assi
a431704d96 run fmt 2025-11-23 10:23:43 -05:00
phramusca
4685e8d871 minor comments 2025-11-23 15:39:00 +01:00
phramusca
3df6c54850 update comment 2025-11-23 15:30:12 +01:00
phramusca
a8dc87e7e8 fix kekatsu tsv format 2025-11-23 15:22:58 +01:00
Georges-Antoine Assi
a98de7d43f add title_id to fpkg feed 2025-11-19 19:45:07 -05:00
Georges-Antoine Assi
6593b6afeb fix release date format for fpkgi 2025-11-17 19:12:58 -05:00
Georges-Antoine Assi
bc8aeb0047 changes from bot review 2025-11-15 15:14:00 -05:00
Georges-Antoine Assi
0083033f53 [ROMM-2650] Add FPKGi support for PS4/PS5 2025-11-15 14:23:38 -05:00
Georges-Antoine Assi
883843f8d0 tab separate kekatsu feed 2025-11-12 23:00:17 -05:00
Georges-Antoine Assi
d9da0dbab7 changes from bot review 2025-11-11 20:53:19 -05:00
Georges-Antoine Assi
c6af55b11a [ROMM-2648] Encode filename of download URLs 2025-11-11 20:45:59 -05:00
Georges-Antoine Assi
df24b97b0d [ROMM-2645] Wrap items in feeds with double quotes 2025-11-11 16:29:02 -05:00
Georges-Antoine Assi
1eabcfb9f4 Add PSP Pkgi support 2025-10-27 20:36:53 -04:00
Georges-Antoine Assi
bfd2f12181 catch keyerror 2025-10-23 21:55:05 -04:00
Georges-Antoine Assi
ddd82ff751 string replace commas 2025-10-23 21:53:42 -04:00
Georges-Antoine Assi
1707103b2e add kekatsu to feed endpoint 2025-10-19 14:41:01 -04:00
Georges-Antoine Assi
0bde546aee use content type string in url 2025-10-19 14:22:52 -04:00
Georges-Antoine Assi
31709495b4 add endpoint for psvita 2025-10-19 12:30:56 -04:00
Georges-Antoine Assi
d5a0f6416c bugfixes 2025-10-19 12:16:30 -04:00
Georges-Antoine Assi
95e109cbd1 output csv 2025-10-19 11:45:41 -04:00
Georges-Antoine Assi
81702a4bbd Add endpoint for ps3 pkgi 2025-10-19 11:16:32 -04:00
Georges-Antoine Assi
df15e328d0 changes from bot review 2025-10-06 09:13:01 -04:00
Georges-Antoine Assi
212ac04681 tweak and format code 2025-10-05 21:46:46 -04:00
Borb
3e775fa34c Fix: sanitize Tinfoil TitleDB via Pydantic v2 and use .model_dump() in endpoint 2025-10-05 20:23:18 +00:00
Georges-Antoine Assi
f7d2b92f1d add env var for custom tinfoil welcome messagr 2025-10-01 11:29:12 -04:00
Georges-Antoine Assi
3c4113f8a8 Merge branch 'master' into flashpoint-metadata-handler 2025-09-11 21:27:48 -04:00
Michael Manganiello
e4e3928d1b misc: Apply import sorting 2025-09-04 11:17:00 -03:00
Georges-Antoine Assi
ef2546ec08 fix base handler filename 2025-08-27 12:40:16 -04:00
Michael Manganiello
252722e3bc misc: Apply pyupgrade changes for Python 3.12 compatibility
Command applied:
```
find ./backend/ -type f -name "*.py" -exec pyupgrade --py312-plus {} \;
```
2025-06-29 12:27:16 -03:00
zurdi
686a33e559 fix: update thumbnail URL in platforms_webrcade_feed function 2025-06-18 15:34:08 +00:00
Georges-Antoine Assi
05a78e03ce new method for getting non-pagniated roms 2025-03-21 10:08:44 -04:00
Georges-Antoine Assi
dfe3004f5d Direct download for rom files 2025-03-18 09:52:00 -04:00
Michael Manganiello
ed0ab3cd4a misc: Use FRONTEND_RESOURCES_PATH setting in missing places 2025-02-18 21:53:09 -03:00
Michael Manganiello
70825830c4 misc: Set prefix and tags to API routers
Improve OpenAPI documentation by setting tags to each API router. Also,
set a prefix to each router to group the endpoints by their
functionality.
2025-02-09 11:31:13 -03:00
Georges-Antoine Assi
696a1c6122 Merge branch 'master' into rom-hashing-background-task 2025-01-15 21:51:23 -05:00
Michael Manganiello
865370ec13 misc: Move auth constants to separate file
This simplifies avoiding circular imports when trying to use auth
handlers.
2025-01-08 22:16:31 -03:00
Georges-Antoine Assi
2b600c2725 rename rom.file_size_bytes 2024-12-21 09:26:33 -05:00
Georges-Antoine Assi
55eee458a1 actaully complete backend 2024-12-21 00:37:37 -05:00
Georges-Antoine Assi
3fcce6606c complete updating the endpoints and models 2024-12-20 22:41:56 -05:00
Michael Manganiello
beeb9f0c31 misc: Create enum for authorization scopes
Instead of using just strings, this change converts the scopes to a
`StrEnum`, to be compatible with places where a string is expected. This
avoids typos when using these scopes, simplifies searching for usages,
and improves type hints.

An extra change was the fix to the Firmware download endpoint, which
wasn't respecting the `DISABLE_DOWNLOAD_ENDPOINT_AUTH` flag.
2024-10-18 23:57:42 -03:00
Georges-Antoine Assi
9d40c52e0a Add titledb field to tinfoil response 2024-08-27 22:38:53 -04:00
Michael Manganiello
b6aedfc902 fix: Allow access to Tinfoil feed when download auth is disabled
This matches the behavior of the Webrcade feed.
2024-08-09 09:54:59 -03:00
Michael Manganiello
95a66a182e misc: Improve typing for feed schemas
* Add typing for nested objects in Tinfoil and Webrcade feed schemas.
* Do not send Rom background and thumbnail, if not available.
* Correctly build URLs using `starlette` utils.
* Deprecate the `ROMM_HOST` setting, no longer needed.
* Fix FastAPI custom router to prefer routes without trailing slash.
* Fix Webrcade background URL pointing to gallery screenshot.
2024-08-07 22:56:16 -03:00
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
Georges-Antoine Assi
7530fdd576 mega refactor of pr 2024-07-01 15:12:07 -04:00