Skip to content

Commit

Permalink
fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
slackspace-io committed Mar 9, 2024
1 parent c9cb148 commit 35417ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/lib/api.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { BE_BASE_URL } from "../config";

export async function fetchPods(): Promise<Array<{name: string, timeScanned: string}>> {
// @ts-ignore
const response = await fetch(`${BE_BASE_URL}/pods`);
const response = await fetch(`${BE_BASE_URL}/api/pods`);
if (!response.ok) {
throw new Error('Failed to fetch pods');
}
Expand Down

0 comments on commit 35417ed

Please sign in to comment.