12 lines
223 B
JavaScript
12 lines
223 B
JavaScript
|
/**
|
||
|
* Api root path
|
||
|
* @type {string}
|
||
|
*/
|
||
|
const API_ROOT =
|
||
|
window.location.protocol +
|
||
|
|
||
|
import.meta.env.DEV ?
|
||
|
'//127.0.0.1:8000' :
|
||
|
'//pairent.vvsu.ru';
|
||
|
|
||
|
module.exports = Object.freeze({ API_ROOT });
|