modify the ticket agent list api
parent
aefe3bb3e2
commit
0aa5db7547
|
@ -109,12 +109,14 @@ const TicketAggent = ({ setRedirect, setRedirectUrl, t }) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let isResponseOK = false;
|
let isResponseOK = false;
|
||||||
// Get Ticket List
|
// Get Ticket List
|
||||||
fetch(APIBaseURL + '/ticket/list', {
|
fetch(APIBaseURL + '/ticket/list/agent', {
|
||||||
method: 'GET',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-type': 'application/json'
|
'Content-type': 'application/json'
|
||||||
},
|
},
|
||||||
body: null
|
body: JSON.stringify({
|
||||||
|
user_name: 'admin'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
Loading…
Reference in New Issue