Landing page editor: logo/background/subtitle, markdown details page, editable disclaimer, photo shutter
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user