use MangaDex to better find links between AniList and MangaUpdates
This commit is contained in:
10
backend/src/router/MangaDexRouter.ts
Normal file
10
backend/src/router/MangaDexRouter.ts
Normal 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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user