1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

Add fixes for proxy

This commit is contained in:
Konrad Kosmatka
2024-02-05 13:30:33 +01:00
parent f5a31e90aa
commit 46c6a1cf66
7 changed files with 26 additions and 31 deletions

View File

@@ -54,7 +54,7 @@
// Perform an AJAX request to the /login endpoint
$.ajax({
type: 'POST',
url: '/login',
url: './login',
data: $(this).serialize(),
success: function (data) {
// Update the content on the page with the message from the response
@@ -83,7 +83,7 @@
// Perform an AJAX request to the /logout endpoint
$.ajax({
type: 'GET', // Assuming the logout is a GET request, adjust accordingly
url: '/logout',
url: './logout',
success: function (data) {
// Update the content on the page with the message from the response
$('#login-message').text(data.message);
@@ -113,4 +113,4 @@
$(':root').css('--color-main', themeColors[0]);
$(':root').css('--color-main-bright', themeColors[1]);
}
}
}