Frontend updated: Login and register moved to /api/ path.
This commit is contained in:
@@ -243,7 +243,7 @@ const handleErrors = async resp => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const login = (username, password) => {
|
const login = (username, password) => {
|
||||||
const url = new URL("/login", BASE_URL);
|
const url = new URL("/api/login", BASE_URL);
|
||||||
const options = {
|
const options = {
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
@@ -262,7 +262,7 @@ const login = (username, password) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const register = (username, password) => {
|
const register = (username, password) => {
|
||||||
const url = new URL("/register", BASE_URL);
|
const url = new URL("/api/register", BASE_URL);
|
||||||
const options = {
|
const options = {
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
|
|||||||
Reference in New Issue
Block a user