sua api xoa level

This commit is contained in:
huyt 2022-01-14 23:38:50 +07:00
parent 1da6cf4a85
commit 9f34b62bba

View File

@ -87,7 +87,7 @@ class Role extends Component {
DeleteRole = async (Role) => { DeleteRole = async (Role) => {
let data = await fetch(`${HOST}/api/roles/${Role._id}`, { let data = await fetch(`${HOST}/api/levels/${Role._id}`, {
method: 'DELETE', method: 'DELETE',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',