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

@@ -332,7 +332,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
useEffect(() => {
const fetchPoiTypData = async () => {
try {
const response = await fetch("/api/poiTyp");
const response = await fetch("/api/readPoiTyp");
const data = await response.json();
setPoiTypData(data); // Daten im Recoil State speichern
} catch (error) {

View File

@@ -11,7 +11,7 @@ const ShowAddStationPopup = ({ map, latlng }) => {
useEffect(() => {
const fetchPoiTypData2 = async () => {
try {
const response = await fetch("/api/poiTyp");
const response = await fetch("/api/readPoiTyp");
const data = await response.json();
setPoiTypData2(data);
if (data && data.length > 0) {