added endpoint for downloading from extensions
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user