Rename interfaces, AppBar changes

This commit is contained in:
cracklesparkle
2024-06-28 12:33:07 +09:00
parent c41e59cd86
commit af1d497715
13 changed files with 165 additions and 80 deletions

View File

@ -1,12 +1,12 @@
import axiosInstance from "../http/axiosInstance";
import { Role, RoleCreate } from "../interfaces/auth";
import { IRoleCreate } from "../interfaces/role";
export default class RoleService {
static async getRoles() {
return await axiosInstance.get(`/auth/roles`)
}
static async createRole(data: RoleCreate) {
static async createRole(data: IRoleCreate) {
return await axiosInstance.post(`/auth/roles/`, data)
}