TF-624 Remove endpoint oidc unnecessary

This commit is contained in:
dab246
2022-06-07 18:05:12 +07:00
committed by Dat H. Pham
parent fd43a94192
commit 28fbe511af
2 changed files with 3 additions and 5 deletions
@@ -1,6 +1,6 @@
import 'package:core/core.dart';
import 'package:tmail_ui_user/features/login/data/network/endpoint.dart';
import 'package:core/data/model/query/query_parameter.dart';
import 'package:core/data/network/config/service_path.dart';
extension ServicePathExtension on ServicePath {
String generateEndpointPath() {
@@ -8,7 +8,7 @@ extension ServicePathExtension on ServicePath {
}
ServicePath generateOIDCPath(Uri baseUrl) {
return ServicePath(baseUrl.origin + Endpoint.oidc + path);
return ServicePath(baseUrl.toString() + path);
}
ServicePath withQueryParameters(List<QueryParameter> queryParameters) {
@@ -1,7 +1,5 @@
import 'package:core/data/network/config/service_path.dart';
class Endpoint {
static const String oidc = '/oidc';
static final ServicePath webFinger = ServicePath('/.well-known/webfinger');
}