This commit is contained in:
2026-05-16 01:59:23 +03:00
parent 77d396b842
commit be2a17c36b
2 changed files with 4 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
// frontend/js/api.js
const API_BASE = "/api";
const API_BASE = `http://${window.location.hostname}:5000/api`;
function getHeaders() {
const token = localStorage.getItem('token');