Rename api/locations to api/readLocations and api/poiTyp to api/readPoiTyp

This commit is contained in:
ISA
2024-05-03 09:26:09 +02:00
parent fb25f3a39d
commit 79c0b4e8cf
5 changed files with 13 additions and 12 deletions

View File

@@ -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);
};