feat: Hex Wars - Badge in Sidebar und BottomNav wenn man dran ist
This commit is contained in:
@@ -281,6 +281,16 @@ router.get('/', authenticate, (req, res) => {
|
||||
res.json(games);
|
||||
});
|
||||
|
||||
// ── Meine Züge: Anzahl Spiele wo ich dran bin ────────────────────────────────
|
||||
router.get('/my-turns', authenticate, (req, res) => {
|
||||
const me = uid(req);
|
||||
const { count } = db.prepare(`
|
||||
SELECT COUNT(*) as count FROM geo_games
|
||||
WHERE status='active' AND current_turn=?
|
||||
`).get(me);
|
||||
res.json({ count });
|
||||
});
|
||||
|
||||
// ── Topliste ──────────────────────────────────────────────────────────────────
|
||||
router.get('/leaderboard', authenticate, (req, res) => {
|
||||
const rows = db.prepare(`
|
||||
|
||||
Reference in New Issue
Block a user