Landing page editor: logo/background/subtitle, markdown details page, editable disclaimer, photo shutter

This commit is contained in:
2026-07-24 16:35:00 +10:00
parent dfa2ae12e8
commit a1234fb851
8 changed files with 373 additions and 31 deletions
+7
View File
@@ -38,6 +38,13 @@ app.delete('/api/assets/:id', guard, (req, res) => {
catch (e) { res.status(400).json({ error: String(e.message || e) }); }
});
// ---------- landing page ----------
app.get('/api/landing', (req, res) => res.json(state.getLanding()));
app.put('/api/landing', guard, (req, res) => {
try { res.json(state.putLanding(req.body)); }
catch (e) { res.status(400).json({ error: String(e.message || e) }); }
});
// ---------- character overrides ----------
app.get('/api/characters', (req, res) => res.json(state.getCharacters()));
app.put('/api/characters', guard, (req, res) => {