Skip to content

Commit

Permalink
change to get req
Browse files Browse the repository at this point in the history
  • Loading branch information
IanHollow committed May 31, 2024
1 parent d6a53bc commit 45f0911
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const backend = "http://localhost:8000";

export async function fetchLocations(): Promise<Location[]> {
const res = await fetch("http://localhost:8000/api/locations", {
method: "GET",
next: {
revalidate: 1800, // every 30 minutes
},
Expand Down

0 comments on commit 45f0911

Please sign in to comment.