Refactor frontend, display tours with cards on ToursPage
This commit is contained in:
7
software/src/data/api/locationApi.ts
Normal file
7
software/src/data/api/locationApi.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import axios from "axios"
|
||||
|
||||
let BASE_URL = "http://localhost:3000/locations"
|
||||
|
||||
export async function getAllLocations() {
|
||||
return await axios.get(BASE_URL)
|
||||
}
|
||||
Reference in New Issue
Block a user