feat(stats): add library entry deletion and app-wide delete progress (#174)

This commit is contained in:
sudacode authored and GitHub committed 2026-07-29 02:00:16 -07:00
1 parent 0d7084c8aa
commit 6d2a72e13b
40 files changed
+2013 -125

No files matched your search

@@ -190,4 +190,11 @@ export function registerStatsLibraryRoutes(
await tracker.deleteVideo(videoId);
return c.json(statsJson('deleteVideo', { ok: true }));
});
app.delete('/api/stats/anime/:animeId', async (c) => {
const animeId = parseIntQuery(c.req.param('animeId'), 0);
if (animeId <= 0) return c.body(null, 400);
await tracker.deleteAnime(animeId);
return c.json(statsJson('deleteAnime', { ok: true }));
});
}