added frontend

This commit is contained in:
verboomp
2026-01-21 16:08:09 +01:00
parent d2e6f5164a
commit b3de3eec8c
74 changed files with 4938 additions and 26 deletions

View File

@@ -0,0 +1,15 @@
import 'package:flutter/foundation.dart' show kReleaseMode;
abstract interface class UrlUtils {
String getBaseUrl();
}
class UrlUtilsImpl extends UrlUtils {
@override
String getBaseUrl() {
if (kReleaseMode){
return "${Uri.base.origin}/api/";
}
return "http://localhost:8080/api/";
}
}