MSP-3104 add roleService

This commit is contained in:
veselovnk committed 2024-04-10 14:39:37 +03:00
1 parent e1afa417ee
commit 89151474b7
5 files changed
+111 -14

No files matched your search

+8 -3
View File
@@ -1,7 +1,12 @@
type PathKeys = 'baseUrl' | 'login' | 'logout'
type PathKeys = 'baseUrl' | 'getAllRoles' | 'createRole' | 'updateRole' | 'deleteRole' | 'login' | 'logout'
export const apiPaths: Record<PathKeys, string> = {
baseUrl: '/',
baseUrl: '/api/admin',
// ======= ROLES ======
getAllRoles: '/role/all',
createRole: '/role/create',
updateRole: '/role/update',
deleteRole: '/role/delete',
// ======= AUTH ======
login: '/api/admin/auth/login',
logout: '/api/admin/auth/logout'
}