diff --git a/resource/router.go b/resource/router.go index 702c00e4..977c1384 100644 --- a/resource/router.go +++ b/resource/router.go @@ -56,6 +56,7 @@ func (r *router) IDToURI(route string, id int) (string, error) { if err != nil { return "", fmt.Errorf("build uri: %w", err) } + uri.Scheme = "https" return uri.String(), nil } @@ -71,6 +72,7 @@ func (r *router) UUIDToURI(route string, u *uuid.UUID) (*string, error) { if err != nil { return nil, fmt.Errorf("build uri: %w", err) } + uri.Scheme = "https" result := uri.String() return &result, nil } diff --git a/ts/view/configuration/UserEdit.vue b/ts/view/configuration/UserEdit.vue index 8cd3c870..79791d38 100644 --- a/ts/view/configuration/UserEdit.vue +++ b/ts/view/configuration/UserEdit.vue @@ -367,7 +367,7 @@ const saveChanges = async () => { console.log("empty user"); return; } - const url = "/api" + u.uri; + const url = u.uri; const response = await fetch(url, { method: "PUT", headers: {