Merge pull request #30 from sgotti/update_auth_api_path

auth: update auth api paths
This commit is contained in:
Simone Gotti 2020-02-20 09:54:10 +01:00 committed by GitHub
commit 5a37ee7906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

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