From 8e9f8a40fc47f3a1c7e23f1b7e28776a96d05248 Mon Sep 17 00:00:00 2001
From: dedWalker18 <ganeriwala01@gmail.com>
Date: Fri, 10 May 2024 14:02:59 +0530
Subject: [PATCH] fix use axios everywhere #28

---
 src/components/HomePage.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/HomePage.vue b/src/components/HomePage.vue
index 68e1452..7598d5c 100644
--- a/src/components/HomePage.vue
+++ b/src/components/HomePage.vue
@@ -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) {
@@ -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) {