Rename api/locations to api/readLocations and api/poiTyp to api/readPoiTyp
This commit is contained in:
@@ -19,7 +19,7 @@ export default function Home() {
|
||||
});
|
||||
|
||||
const loadData = async () => {
|
||||
const response = await fetch("/api/locations");
|
||||
const response = await fetch("/api/readLocations");
|
||||
const data = await response.json();
|
||||
setLocations(data);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user