Skip to content

Commit

Permalink
Merge pull request #53 from dedWalker18/main
Browse files Browse the repository at this point in the history
Fix: Converting `fetch` API calls to `axios`
  • Loading branch information
ravikumawat7716 authored May 14, 2024
2 parents 226ad6c + 129461e commit 3115088
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

1 comment on commit 3115088

@vercel
Copy link

@vercel vercel bot commented on 3115088 May 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sundarbans – ./

sundarbans-git-main-sundarbans-projects.vercel.app
sundarbans-sundarbans-projects.vercel.app

Please sign in to comment.