absoluteUrl

Converts a relative url to a absolute url, depending on the environment.

E.g. /foo/bar -> https://api.snabble.io/foo/bar