diff --git a/pairent_frontend_react/src/constants.js b/pairent_frontend_react/src/constants.js index ad4c92a..140f564 100644 --- a/pairent_frontend_react/src/constants.js +++ b/pairent_frontend_react/src/constants.js @@ -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 }); \ No newline at end of file