mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-25 00:11:36 +01:00
Fix URL prefixes.
This commit is contained in:
parent
04a667eb6f
commit
acaaab0654
|
@ -5,7 +5,8 @@
|
||||||
* See /LICENSE for more information.
|
* 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 = {
|
export const ForisURLs = {
|
||||||
login: `${REFORIS_URL_PREFIX}/login`,
|
login: `${REFORIS_URL_PREFIX}/login`,
|
||||||
|
@ -24,5 +25,5 @@ export const ForisURLs = {
|
||||||
luci: "/cgi-bin/luci",
|
luci: "/cgi-bin/luci",
|
||||||
|
|
||||||
// API
|
// API
|
||||||
reboot: `${REFORIS_URL_PREFIX}/api/reboot`,
|
reboot: `${REFORIS_API_URL_PREFIX}/reboot`,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user