13 lines
514 B
Dart
13 lines
514 B
Dart
/// Base URL for the MarianumConnect backend. Hardcoded against the test
|
|
/// instance for now; once the production URL is finalised this should move
|
|
/// into `EndpointData` alongside webuntis/nextcloud.
|
|
class ConnectEndpoint {
|
|
ConnectEndpoint._();
|
|
|
|
static const String _baseUrl = 'http://muelleel.ddns.net:8080';
|
|
static const String _apiPrefix = '/api/mobile/v1';
|
|
|
|
static Uri resolve(String subpath) =>
|
|
Uri.parse('$_baseUrl$_apiPrefix/${subpath.startsWith('/') ? subpath.substring(1) : subpath}');
|
|
}
|