sua api xoa level
This commit is contained in:
parent
1da6cf4a85
commit
9f34b62bba
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user