test popup2
This commit is contained in:
parent
86582ceb65
commit
6b2d4aa650
1
app.js
1
app.js
@ -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,
|
||||
|
||||
@ -4,7 +4,7 @@ const title = document.getElementById("popup-title");
|
||||
const tooltip = document.getElementById("map-tooltip");
|
||||
|
||||
const buildingModules = {
|
||||
wohnhaus: loadWohnhaus,
|
||||
11: loadWohnhaus,
|
||||
};
|
||||
|
||||
/* ================================
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user