refactor: Quellcode aufräumen
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// /services/api/fetchDeviceNameById.js
|
||||
// /services/database/fetchDeviceNameById.js
|
||||
export const fetchDeviceNameById = async (idLD) => {
|
||||
try {
|
||||
const response = await fetch(`/api/talas_v5_DB/locationDevice/locationDeviceNameById?idLD=${idLD}`);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// /services/api/fetchPoiData.js
|
||||
// /services/database/fetchPoiDataService.js
|
||||
|
||||
export const fetchPoiData = async (idPoi) => {
|
||||
export const fetchPoiDataService = async (idPoi) => {
|
||||
try {
|
||||
const response = await fetch(`/api/talas_v5_DB/pois/getPoiById?idPoi=${idPoi}`);
|
||||
if (!response.ok) throw new Error("Fehler beim Abrufen der POI-Daten");
|
||||
@@ -1,6 +1,6 @@
|
||||
// /services/api/updateLocationInDatabase.js
|
||||
// /services/database/updateLocationInDatabaseService.js
|
||||
|
||||
export const updateLocationInDatabase = async (id, newLatitude, newLongitude) => {
|
||||
export const updateLocationInDatabaseService = async (id, newLatitude, newLongitude) => {
|
||||
const response = await fetch("/api/talas_v5_DB/pois/updateLocation", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
Reference in New Issue
Block a user