2019-10-07 17:16:27 +02:00
|
|
|
/*
|
2021-04-20 22:39:55 +02:00
|
|
|
* Copyright (C) 2019-2021 CZ.NIC z.s.p.o. (http://www.nic.cz/)
|
2019-10-07 17:16:27 +02:00
|
|
|
*
|
|
|
|
* This is free software, licensed under the GNU General Public License v3.
|
|
|
|
* See /LICENSE for more information.
|
|
|
|
*/
|
|
|
|
|
2019-11-27 17:23:08 +01:00
|
|
|
export const REFORIS_URL_PREFIX = "/reforis";
|
|
|
|
export const REFORIS_API_URL_PREFIX = `${REFORIS_URL_PREFIX}/api`;
|
2019-08-23 15:20:22 +02:00
|
|
|
|
|
|
|
export const ForisURLs = {
|
2021-08-27 20:08:19 +02:00
|
|
|
login: `/login?${REFORIS_URL_PREFIX}/`,
|
|
|
|
logout: `/logout`,
|
2020-03-06 14:00:18 +01:00
|
|
|
|
2019-08-23 15:20:22 +02:00
|
|
|
static: `${REFORIS_URL_PREFIX}/static/reforis`,
|
|
|
|
wifi: `${REFORIS_URL_PREFIX}/network-settings/wifi`,
|
2019-11-27 16:54:37 +01:00
|
|
|
|
2019-09-02 09:30:28 +02:00
|
|
|
packageManagement: {
|
|
|
|
updateSettings: `${REFORIS_URL_PREFIX}/package-management/update-settings`,
|
|
|
|
updates: `${REFORIS_URL_PREFIX}/package-management/updates`,
|
2021-04-20 22:39:55 +02:00
|
|
|
packages: `${REFORIS_URL_PREFIX}/package-management/packages`,
|
2019-09-02 09:30:28 +02:00
|
|
|
},
|
2019-08-23 15:20:22 +02:00
|
|
|
|
2021-06-25 17:28:01 +02:00
|
|
|
// Plugins
|
2020-11-27 14:43:06 +01:00
|
|
|
storage: `${REFORIS_URL_PREFIX}/storage`,
|
2021-06-25 17:28:01 +02:00
|
|
|
sentinelAgreement: `${REFORIS_URL_PREFIX}/sentinel/agreement`,
|
2020-11-27 14:43:06 +01:00
|
|
|
|
2019-08-23 15:20:22 +02:00
|
|
|
// Notifications links are used with <Link/> inside Router, thus url subdir is not required.
|
2020-07-30 11:40:11 +02:00
|
|
|
overview: "/overview",
|
|
|
|
notifications: "/overview#notifications",
|
2019-08-23 15:20:22 +02:00
|
|
|
notificationsSettings: "/administration/notifications-settings",
|
|
|
|
|
2020-08-05 14:37:14 +02:00
|
|
|
approveUpdates: "/package-management/updates",
|
|
|
|
languages: "/package-management/languages",
|
2021-05-11 13:21:35 +02:00
|
|
|
maintenance: "/administration/maintenance",
|
2019-08-23 15:20:22 +02:00
|
|
|
luci: "/cgi-bin/luci",
|
2019-11-27 16:54:37 +01:00
|
|
|
|
|
|
|
// API
|
2022-02-10 11:14:32 +01:00
|
|
|
about: `${REFORIS_API_URL_PREFIX}/about`,
|
2019-11-27 17:23:08 +01:00
|
|
|
reboot: `${REFORIS_API_URL_PREFIX}/reboot`,
|
2019-08-23 15:20:22 +02:00
|
|
|
};
|