1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-11-12 17:15:35 +01:00

Fix URL prefixes.

This commit is contained in:
Bogdan Bodnar 2019-11-27 17:23:08 +01:00
parent 04a667eb6f
commit acaaab0654
No known key found for this signature in database
GPG Key ID: 49E4169AD3CA42B0

View File

@ -5,7 +5,8 @@
* See /LICENSE for more information.
*/
export const REFORIS_URL_PREFIX = process.env.LIGHTTPD ? "/reforis" : "";
export const REFORIS_URL_PREFIX = "/reforis";
export const REFORIS_API_URL_PREFIX = `${REFORIS_URL_PREFIX}/api`;
export const ForisURLs = {
login: `${REFORIS_URL_PREFIX}/login`,
@ -24,5 +25,5 @@ export const ForisURLs = {
luci: "/cgi-bin/luci",
// API
reboot: `${REFORIS_URL_PREFIX}/api/reboot`,
reboot: `${REFORIS_API_URL_PREFIX}/reboot`,
};