From e25510e026f7cb1b92d9c99b06a975bd1bddc037 Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Thu, 16 May 2019 10:04:33 +0200 Subject: [PATCH] auth: update api auth endpoints --- src/util/auth.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/auth.js b/src/util/auth.js index 3f47149..a672893 100644 --- a/src/util/auth.js +++ b/src/util/auth.js @@ -33,19 +33,19 @@ export function apiurl(path) { } export function loginurl() { - return new URL(API_URL + "/login"); + return new URL(API_URL + "/api/login"); } export function authorizeurl() { - return new URL(API_URL + "/authorize"); + return new URL(API_URL + "/api/authorize"); } export function registerurl() { - return new URL(API_URL + "/register"); + return new URL(API_URL + "/api/register"); } export function oauth2callbackurl() { - return new URL(API_URL + "/oauth2/callback"); + return new URL(API_URL + "/api/oauth2/callback"); } export async function loginapi(init) {