mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-23 06:58:05 +02:00
fix(ui): use relative url for api recording requests in flutter web
This commit is contained in:
1 parent
219d6c816f
commit
b3618805a6
1 file changed
+2
-2
@@ -37,9 +37,9 @@ class _RecordingModalState extends State<RecordingModal> {
|
|||||||
final endTime = _startTime.add(Duration(minutes: _durationMinutes));
|
final endTime = _startTime.add(Duration(minutes: _durationMinutes));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Dans une implémentation réelle le port/URL serait géré par une configuration
|
// Utilisation d'une URL relative en Web (ou d'une configuration pour autres plateformes)
|
||||||
final response = await http.post(
|
final response = await http.post(
|
||||||
Uri.parse('http://localhost:8089/api/recordings'),
|
Uri.parse('/api/recordings'),
|
||||||
headers: {'Content-Type': 'application/json'},
|
headers: {'Content-Type': 'application/json'},
|
||||||
body: json.encode({
|
body: json.encode({
|
||||||
'channel_id': widget.channel.streamId,
|
'channel_id': widget.channel.streamId,
|
||||||
|
|||||||
Reference in new issue
Block a user