auth: update api auth endpoints

This commit is contained in:
Simone Gotti 2019-05-16 10:04:33 +02:00
parent 969cdb5182
commit e25510e026
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 + "/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) {