added endpoint for downloading from extensions

This commit is contained in:
2026-01-01 02:59:34 +01:00
parent ba07011800
commit 58843a8bac
10 changed files with 1028 additions and 52 deletions

View File

@@ -10,6 +10,8 @@ async function localRoutes(fastify: FastifyInstance) {
fastify.get('/library/:id/units', controller.getUnits);
fastify.get('/library/:unitId/manifest', controller.getManifest);
fastify.get('/library/:unitId/resource/:resId', controller.getPage);
fastify.post('/library/download/anime', controller.downloadAnime);
fastify.post('/library/download/book', controller.downloadBook);
}
export default localRoutes;