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)})

comments

at least specify that the token cookie is called “token” lol.

const token = document.cookie.split("token=")[1];
fetch('https://api.wasteof.money/messages/admin', {
    headers: {'Authorization': token}
})
    .then(res => res.json())
    .then(data => {console.log(data)})