auth: update auth api paths

This commit is contained in:
Simone Gotti 2020-02-19 10:09:31 +01:00
parent 3fa224d0be
commit 18f9456b8f
1 changed files with 4 additions and 4 deletions

View File

@ -33,19 +33,19 @@ export function apiurl(path) {
} }
export function loginurl() { export function loginurl() {
return new URL(API_URL + "/api/login"); return apiurl("/auth/login");
} }
export function authorizeurl() { export function authorizeurl() {
return new URL(API_URL + "/api/authorize"); return apiurl("/auth/authorize");
} }
export function registerurl() { export function registerurl() {
return new URL(API_URL + "/api/register"); return new apiurl("/auth/register");
} }
export function oauth2callbackurl() { export function oauth2callbackurl() {
return new URL(API_URL + "/api/oauth2/callback"); return new apiurl("/auth/oauth2/callback");
} }
export async function loginapi(init) { export async function loginapi(init) {