MSP-3105 add endpoints in apiPaths and routes in routePaths

This commit is contained in:
Anastasiia committed 2024-04-19 14:20:49 +03:00
1 parent 07b8a04782
commit 67691c58f2
3 files changed
+30 -3

No files matched your search

+21 -1
View File
@@ -9,13 +9,25 @@ type PathKeys =
| 'login'
| 'logout'
| 'getProfile'
| 'getUsers'
| 'createUser'
| 'updateUser'
| 'blockUser'
| 'deleteUser'
| 'getRoles'
| 'getAllPermissions'
| 'baseUserUrl'
| 'baseAdminUrl'
| 'getSystemTree'
| 'getById'
| 'setList'
| 'setOne'
| 'getAllRoutes'
export const apiPaths: Record<PathKeys, string> = {
baseUrl: '/api/admin',
baseUrl: '/api/kkd-configuration-service',
baseAdminUrl: '/api/admin',
baseUserUrl: '/api/admin/user',
baseSystemUrl: '/api/system',
baseConfigUrl: '/api/config',
// ======= ROLES ======
@@ -28,6 +40,14 @@ export const apiPaths: Record<PathKeys, string> = {
logout: '/api/admin/auth/logout',
// ======= PROFILE ======
getProfile: '/api/admin/user/get_profile',
// ======= USERS ======
getUsers: '/get_users',
createUser: '/create_user',
updateUser: '/update_user',
blockUser: '/block_user',
deleteUser: '/delete_user',
getRoles: '/get_roles',
getAllPermissions: '/get_permissions',
// ======= APPLICATIONS ======
getSystemTree: '/application/get_system_tree',
// ======= ACCESS_LIST ======