mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-02-01 12:47:55 +01:00
Working
This commit is contained in:
@@ -37,7 +37,12 @@ export default defineComponent({
|
||||
await $axios.get('guestbook', {
|
||||
headers: {
|
||||
'Authorization': `Bearer ${process.env.API_TOKEN}`
|
||||
}
|
||||
},
|
||||
proxy: {
|
||||
protocol: 'https',
|
||||
host: 'https://api.arthurdanjou.fr',
|
||||
port: 80,
|
||||
},
|
||||
})
|
||||
.then(response => {
|
||||
guestbook_messages.value = response.data.guestbook_messages
|
||||
|
||||
@@ -67,8 +67,6 @@ export default defineComponent({
|
||||
$axios.get('/subscribers', {
|
||||
headers: {
|
||||
'Authorization': `Bearer ${process.env.API_TOKEN}`,
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
}).then((response) => {
|
||||
if (response.status === 200) {
|
||||
|
||||
Reference in New Issue
Block a user