← go back
figured out how to get the admin messages api
const token = document.cookie.split("=")[1];
fetch('https://api.wasteof.money/messages/admin', {
headers: {'Authorization': token}
})
.then(res => res.json())
.then(data => {console.log(data)})
Apr 8, 2022, 5:11 PM
3 0 1
Comments