mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01:00
adjust method comment to be a little less confusing
This commit is contained in:
parent
a51b06b453
commit
99892ddb35
1 changed files with 4 additions and 1 deletions
|
@ -27,12 +27,15 @@ class ApiService {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Takes a server URL and attempts to resolve the API endpoint.
|
/// 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]
|
/// Input: [schema://]host[:port][/path]
|
||||||
/// schema - optional (default: https)
|
/// schema - optional (default: https)
|
||||||
/// host - required
|
/// host - required
|
||||||
/// port - optional (default: based on schema)
|
/// port - optional (default: based on schema)
|
||||||
/// path - optional (default: /.well-known/immich)
|
/// path - optional (default: /)
|
||||||
resolveEndpoint(String serverUrl) async {
|
resolveEndpoint(String serverUrl) async {
|
||||||
// Add schema if none is set
|
// Add schema if none is set
|
||||||
final urlWithSchema = serverUrl.startsWith(RegExp(r"https?://"))
|
final urlWithSchema = serverUrl.startsWith(RegExp(r"https?://"))
|
||||||
|
|
Loading…
Reference in a new issue