mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-04-20 08:16:38 +02:00
51 lines
1.8 KiB
JavaScript
51 lines
1.8 KiB
JavaScript
/*
|
|
* Copyright (C) 2019-2024 CZ.NIC z.s.p.o. (https://www.nic.cz/)
|
|
*
|
|
* This is free software, licensed under the GNU General Public License v3.
|
|
* See /LICENSE for more information.
|
|
*/
|
|
|
|
export const REFORIS_URL_PREFIX = "/reforis";
|
|
export const REFORIS_API_URL_PREFIX = `${REFORIS_URL_PREFIX}/api`;
|
|
|
|
export const ForisURLs = {
|
|
// turris-auth
|
|
login: `/login?${REFORIS_URL_PREFIX}/`,
|
|
logout: `/logout`,
|
|
extendSession: `/extend-session`,
|
|
|
|
static: `${REFORIS_URL_PREFIX}/static/reforis`,
|
|
wifi: `${REFORIS_URL_PREFIX}/network-settings/wifi`,
|
|
|
|
packageManagement: {
|
|
updateSettings: `${REFORIS_URL_PREFIX}/package-management/update-settings`,
|
|
updates: `${REFORIS_URL_PREFIX}/package-management/updates`,
|
|
packages: `${REFORIS_URL_PREFIX}/package-management/packages`,
|
|
},
|
|
|
|
// Plugins
|
|
storage: `${REFORIS_URL_PREFIX}/storage`,
|
|
sentinelAgreement: `${REFORIS_URL_PREFIX}/sentinel/agreement`,
|
|
|
|
// URLs without prefix for Overview page
|
|
openvpnClientSettings: "/openvpn/client-settings",
|
|
packageManagementPackages: "/package-management/packages",
|
|
packageManagementUpdateSettings: "/package-management/update-settings",
|
|
sentinelLicenseAgreement: "/sentinel/agreement",
|
|
librespeedSpeedTest: "/librespeed/speed-test",
|
|
|
|
// Notifications links are used with <Link/> inside Router, thus url subdir is not required.
|
|
overview: "/overview",
|
|
notifications: "/overview#notifications",
|
|
notificationsSettings: "/administration/notifications-settings",
|
|
|
|
approveUpdates: "/package-management/updates",
|
|
languages: "/package-management/languages",
|
|
maintenance: "/administration/maintenance",
|
|
luci: "/cgi-bin/luci",
|
|
|
|
// API
|
|
about: `${REFORIS_API_URL_PREFIX}/about`,
|
|
reboot: `${REFORIS_API_URL_PREFIX}/reboot`,
|
|
};
|