use MangaDex to better find links between AniList and MangaUpdates

This commit is contained in:
wea_ondara
2023-11-25 16:58:48 +01:00
parent 53f059b7de
commit d8bb97805c
25 changed files with 506 additions and 72 deletions

View File

@@ -0,0 +1,10 @@
import {Router} from 'express';
import {MangaDexController} from '../controller/MangaDexController';
import {MangaDexCache} from '../cache/MangaDexCache';
export default function mangaDexRouter(cache: MangaDexCache): Router {
const controller = new MangaDexController(cache);
const router = Router();
router.get('/manga', controller.manga.bind(controller));
return router;
}

View File

@@ -8,5 +8,6 @@ export default function mangaUpdatesRouter(cache: MangaUpdatesCache): Router {
router.post('/v1/series/search', controller.search.bind(controller));
router.get('/v1/series/:id', controller.getById.bind(controller));
router.get('/v1/series/:id/groups', controller.getGroupById.bind(controller));
router.get('/series_id_from_website_id/:websiteId', controller.getSeriesIdFromWebsiteId.bind(controller));
return router;
}