fix(recording): rename log api route to avoid shelf_router Not Found param collisions

This commit is contained in:
Michael committed 2026-03-08 20:43:50 +01:00
1 parent 966311f560
commit 548e4cd664
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ class RecordingsApi {
});
// Consulter les logs d'un enregistrement
router.get('/<id>/log', (Request request, String id) async {
router.get('/logs/<id>', (Request request, String id) async {
final recording = _db.getRecordingById(id);
if (recording == null) {
@@ -73,7 +73,7 @@ class _RecordingsTabState extends State<RecordingsTab> {
Future<void> _showLogs(String id, String title) async {
try {
final response = await http.get(Uri.parse('/api/recordings/$id/log'));
final response = await http.get(Uri.parse('/api/recordings/logs/$id'));
if (response.statusCode == 200) {
final data = json.decode(response.body);