List the routes the API serves at its root

The root's list named a /grand-prix/{name}/year/{year} route and a
/tracks/.../layout/... route that do not exist, and left out the
per-layout file route, the session thumbs and the Kometa metadata, so a
reader of / was sent to addresses that answer 404.

Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
This commit is contained in:
2026-11-27 09:48:21 +01:00
parent b6e6e9d565
commit 6490dc5933
+2 -2
View File
@@ -75,9 +75,9 @@ async def root():
"/circuits/{country_slug}/{city_slug}",
"/circuits/{country_slug}/{city_slug}/{circuit_slug}",
"/circuits/{country_slug}/{city_slug}/{circuit_slug}/layout/{layout_slug}",
"/circuits/{country_slug}/{city_slug}/{circuit_slug}/layout/{layout_slug}/{format}",
"/tracks/{country_slug}/{city_slug}/{circuit_slug}/year/{year}/{format}",
"/tracks/{country_slug}/{city_slug}/{circuit_slug}/layout/{layout_slug}/{format}",
"/grand-prix/{grand_prix_name}/year/{year}",
"/grand-prix/{grand_prix_name}/{season}/{format}",
"/posters/race/{grand_prix_name}/{season}.png",
"/posters/season/{season}.png",
"/posters/session/{grand_prix_name}/{season}/{session_slug}.png",