SelfHosted

constructor(url: Url)

Parameters

url

The full base URL including the path prefix and trailing slash (e.g. Url("https://umami.my-domain.com/api/")).


constructor(baseUrl: String, prefix: String = "api")

Convenience constructor that builds the Url from a base URL string and an optional path prefix.

Parameters

baseUrl

The scheme + host portion (e.g. "https://umami.my-domain.com").

prefix

The API path prefix. Defaults to "/api".