TF-571 Check OIDC is available
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
import 'package:core/data/network/config/service_path.dart';
|
||||
|
||||
class Endpoint {
|
||||
static final ServicePath authentication = ServicePath('/api/login');
|
||||
}
|
||||
@@ -1,19 +1,6 @@
|
||||
|
||||
class ServicePath {
|
||||
final String path;
|
||||
|
||||
ServicePath(this.path);
|
||||
}
|
||||
|
||||
extension ServicePathExtension on ServicePath {
|
||||
String generateEndpointPath() {
|
||||
return '$path';
|
||||
}
|
||||
|
||||
String generateAuthenticationUrl(Uri? baseUrl) {
|
||||
if (baseUrl == null) {
|
||||
return generateEndpointPath();
|
||||
} else {
|
||||
return baseUrl.origin + generateEndpointPath();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user