This commit is contained in:
2026-03-16 18:57:22 +03:00
parent 65eca64a5f
commit 668e62d652
18 changed files with 6386 additions and 1347 deletions

View File

@@ -441,7 +441,9 @@
</div>
<script>
const API_BASE_URL = 'http://localhost:8000/api';
const currentProtocol = window.location.protocol; // http: или https:
const currentHost = window.location.host; // yarmarka.rabota.today или IP:порт
let API_BASE_URL = `${currentProtocol}//${currentHost}/api`;
const token = localStorage.getItem('accessToken');
// Проверка авторизации