mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-12 01:36:20 +02:00
fix(recording): rename log api route to avoid shelf_router Not Found param collisions
This commit is contained in:
1 parent
966311f560
commit
548e4cd664
2 files changed
+2
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user