Hey there. I'm having issues using CtrlPanelGG's api. I'm using the documentation from postman. This is my code:
var axios = require('axios');
var config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://dash.something.xyz/api/roles/',
headers: { Authorization: "nothing4u" }
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
When i executed the code, it said 404. How can I fix this?