Nginx now listens for path /api and redirects internally, changed BaseURL to use /api, AND patched security authentication issue for POST and GET requests to the uvicorn service

This commit is contained in:
NPS Agent
2026-05-12 09:22:59 +09:30
parent 69588de82c
commit 6bcea3ee5d
5 changed files with 40 additions and 17 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
class ApiService {
constructor() {
this.baseUrl = `http://${window.location.hostname}:24024`;
this.baseUrl = '/api';
this.token = localStorage.getItem('dashy_token');
this.subscribers = new Set();
}