auth: update auth api paths
This commit is contained in:
parent
3fa224d0be
commit
18f9456b8f
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue