Fix login API endpoint path by removing redundant 'admin/' prefix
This commit is contained in:
@@ -57,7 +57,7 @@
|
|||||||
function login() {
|
function login() {
|
||||||
const password = document.getElementById('password').value;
|
const password = document.getElementById('password').value;
|
||||||
|
|
||||||
fetch('admin/api/login', {
|
fetch('api/login', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
|
Reference in New Issue
Block a user