From c0c5432210807c29416be24c855deb286a30d0d6 Mon Sep 17 00:00:00 2001 From: b1ek Date: Mon, 8 May 2023 23:59:58 +1000 Subject: [PATCH] add protocol to api root --- pairent_frontend_react/src/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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