v1.2
This commit is contained in:
@@ -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');
|
||||
|
||||
// Проверка авторизации
|
||||
|
||||
Reference in New Issue
Block a user