1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-04 02:46:47 +01:00

adjust method comment to be a little less confusing

This commit is contained in:
Connery Noble 2023-01-12 15:06:17 -08:00
parent a51b06b453
commit 99892ddb35

View file

@ -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?://"))