Skip to content

Commit

Permalink
fix use axios everywhere #28
Browse files Browse the repository at this point in the history
  • Loading branch information
dedWalker18 committed May 10, 2024
1 parent fa7dbb5 commit 8e9f8a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export default {
methods: {
async fetchAdmins() {
try {
const response = await fetch("https://sundarbans.camlio.shop/council");
const response = await axios.get("https://sundarbans.camlio.shop/council");
const data = await response.json();
this.admins = data.admins;
} catch (error) {
Expand All @@ -262,7 +262,7 @@ export default {
},
async fetchEvents() {
try {
const response = await fetch("https://sundarbans.camlio.shop/events", {
const response = await axios.get("https://sundarbans.camlio.shop/events", {
mode: "cors",
});
if (!response.ok) {
Expand Down

0 comments on commit 8e9f8a4

Please sign in to comment.