add protocol to api root

This commit is contained in:
b1ek 2023-05-08 23:59:58 +10:00
parent 080d1e0ffc
commit c0c5432210
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
* Api root path
* @type {string}
*/
const API_ROOT = '//127.0.0.1:8000';
const API_ROOT = window.location.protocol + '//127.0.0.1:8000';
// ДЛЯ ПРОДА ПОСТАВИТЬ ЭТО: '//pairent.vvsu.ru'
export default Object.freeze({ API_ROOT });