feat: Admin-Endpoint zum Leeren des Streaming-Caches
This commit is contained in:
@@ -743,6 +743,12 @@ router.post('/favorites/:id/acknowledge', authenticate, requireAdmin, (req, res)
|
||||
});
|
||||
|
||||
// Admin: ALLE verfügbaren Watch-Provider für Deutschland live von TMDb holen
|
||||
// Admin: Streaming-Top10-Cache leeren (z.B. nach Logik-Änderungen)
|
||||
router.post('/streaming/clear-cache', authenticate, requireAdmin, (req, res) => {
|
||||
const r = db.prepare("DELETE FROM xrel_cache WHERE cache_key LIKE 'streaming-top10:%'").run();
|
||||
res.json({ ok: true, cleared: r.changes });
|
||||
});
|
||||
|
||||
router.get('/settings', authenticate, requireAdmin, (req, res) => res.json({ configured: !!getToken() }));
|
||||
router.put('/settings', authenticate, requireAdmin, (req, res) => {
|
||||
const { tmdb_token } = req.body;
|
||||
|
||||
Reference in New Issue
Block a user