From 99892ddb350be2df25c62d31935cab35cfa94742 Mon Sep 17 00:00:00 2001 From: Connery Noble Date: Thu, 12 Jan 2023 15:06:17 -0800 Subject: [PATCH] adjust method comment to be a little less confusing --- mobile/lib/shared/services/api.service.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mobile/lib/shared/services/api.service.dart b/mobile/lib/shared/services/api.service.dart index 3454201431..495a48448d 100644 --- a/mobile/lib/shared/services/api.service.dart +++ b/mobile/lib/shared/services/api.service.dart @@ -27,12 +27,15 @@ class ApiService { } /// Takes a server URL and attempts to resolve the API endpoint. + /// If no path is provided, a lookup for /.well-known/immich will + /// attempt to resolve the API endpoint. Otherwise, we assume the + /// input points to the API directly. /// /// Input: [schema://]host[:port][/path] /// schema - optional (default: https) /// host - required /// port - optional (default: based on schema) - /// path - optional (default: /.well-known/immich) + /// path - optional (default: /) resolveEndpoint(String serverUrl) async { // Add schema if none is set final urlWithSchema = serverUrl.startsWith(RegExp(r"https?://"))