auth: update api auth endpoints
This commit is contained in:
parent
969cdb5182
commit
e25510e026
|
@ -33,19 +33,19 @@ export function apiurl(path) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function loginurl() {
|
export function loginurl() {
|
||||||
return new URL(API_URL + "/login");
|
return new URL(API_URL + "/api/login");
|
||||||
}
|
}
|
||||||
|
|
||||||
export function authorizeurl() {
|
export function authorizeurl() {
|
||||||
return new URL(API_URL + "/authorize");
|
return new URL(API_URL + "/api/authorize");
|
||||||
}
|
}
|
||||||
|
|
||||||
export function registerurl() {
|
export function registerurl() {
|
||||||
return new URL(API_URL + "/register");
|
return new URL(API_URL + "/api/register");
|
||||||
}
|
}
|
||||||
|
|
||||||
export function oauth2callbackurl() {
|
export function oauth2callbackurl() {
|
||||||
return new URL(API_URL + "/oauth2/callback");
|
return new URL(API_URL + "/api/oauth2/callback");
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function loginapi(init) {
|
export async function loginapi(init) {
|
||||||
|
|
Loading…
Reference in New Issue