Auth: SignIn, SignUp (TODO: rewrite into react-hook-form)
This commit is contained in:
11
frontend_reactjs/src/services/RoleService.ts
Normal file
11
frontend_reactjs/src/services/RoleService.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import axiosInstance from "../http/axiosInstance";
|
||||
|
||||
export default class RoleService {
|
||||
static async getRoles() {
|
||||
return await axiosInstance.get(`/auth/roles`)
|
||||
}
|
||||
|
||||
static async getRoleById(id: number) {
|
||||
return await axiosInstance.get(`/auth/roles/${id}`)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user