dashboard implemented
parent
85d66d8cb3
commit
cbc909aef1
@ -0,0 +1,17 @@
|
|||||||
|
import axios from 'axios';
|
||||||
|
|
||||||
|
export function getSummary(token) {
|
||||||
|
return axios({
|
||||||
|
method: 'GET',
|
||||||
|
url: `/dashboard`,
|
||||||
|
headers: {
|
||||||
|
Authorization: `Bearer ${token}`,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
return res.data;
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
throw err.response;
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in New Issue