refactor(tts): derive save filename from URL path only

This commit is contained in:
2026-08-10 09:12:34 +08:00
parent 82caa9bb9c
commit 45bf362fbc
5 changed files with 16 additions and 35 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ To run the frontend alongside the proxy, open a second terminal and run
| GET | `/health` | Liveness |
| GET | `/search?q=&page=`| Search the Workshop (scrapes browse page) |
| GET | `/items/:id` | Full parsed `TTSMod` (BSON save) |
| GET | `/items/:id/file` | Raw save bytes, filename from header |
| GET | `/items/:id/file` | Raw save bytes, filename from the URL path |
| GET | `/asset?url=` | CORS-safe proxy for external assets (textures, models) |
| GET | `/trace?url=&mode=&format=&offset=` | Trace an image into a vector shape (BSON); `offset` insets/outsets in pixels |