From 11a63713b9d242785ef3864a0106ca842b4d2bd3 Mon Sep 17 00:00:00 2001 From: b1ek Date: Wed, 17 May 2023 15:08:34 +1000 Subject: [PATCH] fix constants.js api url --- 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 a017078..0b2a3e4 100644 --- a/pairent_frontend_react/src/constants.js +++ b/pairent_frontend_react/src/constants.js @@ -7,7 +7,7 @@ const api_path = path => API_ROOT + path; * Api root path * @type {string} */ -const API_ROOT = window.location.protocol + window.location.host; +const API_ROOT = window.location.protocol + '//' + window.location.host; // ДЛЯ ПРОДА ПОСТАВИТЬ ЭТО: '//' + window.location.host /** OpenID Connect Client Config