test popup2

This commit is contained in:
Cay 2026-03-13 14:31:12 +00:00
parent 86582ceb65
commit 6b2d4aa650
3 changed files with 3 additions and 2 deletions

1
app.js
View File

@ -111,6 +111,7 @@ app.get("/api/building/:id", async (req, res) => {
const buildingInfo = info[0] || {};
res.json({
name: buildingInfo.name || "Gebäude",
type: buildingId, // 👈 DAS HINZUFÜGEN
level: building.level,
points: building.points,
nextLevelPoints: nextLevel[0]?.required_points || null,

View File

@ -4,7 +4,7 @@ const title = document.getElementById("popup-title");
const tooltip = document.getElementById("map-tooltip");
const buildingModules = {
wohnhaus: loadWohnhaus,
11: loadWohnhaus,
};
/* ================================

View File

@ -1,6 +1,6 @@
const express = require("express");
const router = express.Router();
const db = require("../db");
const db = require("../database/database");
router.get("/", async (req, res) => {
const userId = 1;