add photo placeholder, mirrored camera capture, configurable footer, and student .url zip export

This commit is contained in:
dev
2026-09-06 11:22:00 +03:00
parent 03bb23a548
commit d7a479c008
9 changed files with 130 additions and 12 deletions
+7
View File
@@ -62,6 +62,13 @@ app.get('/api/settings', requireAdmin, async (_, res) => {
res.json(out);
});
app.get('/api/public-settings', async (_, res) => {
const keys = ['footer_left', 'footer_right'];
const out = {};
for (const k of keys) out[k] = await getSetting(k, '');
res.json(out);
});
app.put('/api/settings', requireAdmin, async (req, res) => {
const { settings } = req.body;
if (!settings || typeof settings !== 'object') return res.status(400).json({ error: 'settings required' });