fix(backend): move GET /recordings/logs/<id> to main router to avoid shelf_router collision with DELETE /<id>

This commit is contained in:
Michael committed 2026-03-08 21:42:53 +01:00
1 parent 989303db77
commit d91be43f27
2 files changed
+42 -26

No files matched your search

+3 -1
View File
@@ -116,7 +116,9 @@ void main(List<String> args) async {
.addMiddleware(authMiddleware(db))
.addHandler(settingsHandler.router.call),
)
// TV Recordings endpoints
// TV Recordings - Route des logs AVANT le mount general (évite collision shelf_router avec /<id>)
..get('/api/recordings/logs/<id>', recordingsApi.getLogHandler)
// TV Recordings endpoints (GET /, POST /, DELETE /<id>)
..mount(
'/api/recordings',
const Pipeline()