hj,
This commit is contained in:
parent
07da6edcc1
commit
edb9ae3664
34
public/js/buildings.js
Normal file
34
public/js/buildings.js
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
const express = require("express");
|
||||||
|
const router = express.Router();
|
||||||
|
const auth = require("../middleware/auth");
|
||||||
|
|
||||||
|
/* ================================
|
||||||
|
Gebäude Seiten
|
||||||
|
================================ */
|
||||||
|
|
||||||
|
// Gebäude per ID — Weiterleitung zur Karte (Popup wird per JS geöffnet)
|
||||||
|
router.get("/building/:id", auth, (req, res) => {
|
||||||
|
res.redirect("/launcher");
|
||||||
|
});
|
||||||
|
|
||||||
|
router.get("/castle", auth, (req, res) => {
|
||||||
|
res.render("buildings/castle");
|
||||||
|
});
|
||||||
|
|
||||||
|
router.get("/market", auth, (req, res) => {
|
||||||
|
res.render("buildings/market");
|
||||||
|
});
|
||||||
|
|
||||||
|
router.get("/church", auth, (req, res) => {
|
||||||
|
res.render("buildings/church");
|
||||||
|
});
|
||||||
|
|
||||||
|
router.get("/portal", auth, (req, res) => {
|
||||||
|
res.render("buildings/portal");
|
||||||
|
});
|
||||||
|
|
||||||
|
router.get("/tower", auth, (req, res) => {
|
||||||
|
res.render("buildings/tower");
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = router;
|
||||||
Loading…
Reference in New Issue
Block a user