feat(.well-known): add .well-known/immich to reference API endpoint

This commit is contained in:
Connery Noble
2023-01-11 17:30:01 -08:00
parent b9b2b559a1
commit 6962df6340
14 changed files with 119 additions and 23 deletions
+5 -2
View File
@@ -22,8 +22,11 @@ class SplashScreenPage extends HookConsumerWidget {
void performLoggingIn() async {
try {
if (loginInfo != null) {
// Make sure API service is initialized
apiService.setEndpoint(loginInfo.serverUrl);
// Resolve API server endpoint from user provided serverUrl
final serverEndpoint =
await apiService.resolveEndpoint(loginInfo.serverUrl);
apiService.setEndpoint(serverEndpoint);
Hive.box(userInfoBox).put(serverEndpointKey, serverEndpoint);
var isSuccess = await ref
.read(authenticationProvider.notifier)