9 lines
285 B
TypeScript
9 lines
285 B
TypeScript
import ObjectList from "../../../hooks/objectList.tsx";
|
|
import {RoleService} from "../../../client";
|
|
|
|
const useRolesList = () => ObjectList({
|
|
queryFn: RoleService.getAllRoles,
|
|
getObjectsFn: response => response.roles,
|
|
queryKey: "getAllRoles"
|
|
})
|
|
export default useRolesList; |