MSP-3107 add appService

This commit is contained in:
veselovnk committed 2024-04-17 16:49:21 +03:00
1 parent c60a8dc825
commit 8a65a03a13
4 files changed
+81 -3

No files matched your search

+8 -1
View File
@@ -1,5 +1,7 @@
type PathKeys =
| 'baseUrl'
| 'baseSystemUrl'
| 'baseConfigUrl'
| 'getAllRoles'
| 'createRole'
| 'updateRole'
@@ -7,8 +9,11 @@ type PathKeys =
| 'login'
| 'logout'
| 'getProfile'
| 'getSystemTree'
export const apiPaths: Record<PathKeys, string> = {
baseUrl: '/api/admin',
baseSystemUrl: '/api/system',
baseConfigUrl: '/api/config',
// ======= ROLES ======
getAllRoles: '/role/all',
createRole: '/role/create',
@@ -18,5 +23,7 @@ export const apiPaths: Record<PathKeys, string> = {
login: '/api/admin/auth/login',
logout: '/api/admin/auth/logout',
// ======= PROFILE ======
getProfile: '/api/admin/user/get_profile'
getProfile: '/api/admin/user/get_profile',
// ======= APPLICATIONS ======
getSystemTree: '/application/get_system_tree'
}