multi language support for books and book page redesigned
This commit is contained in:
@@ -101,12 +101,14 @@ export async function getChapterContent(req: any, reply: FastifyReply) {
|
||||
try {
|
||||
const { bookId, chapter, provider } = req.params;
|
||||
const source = req.query.source || 'anilist';
|
||||
const lang = req.query.lang || 'none';
|
||||
|
||||
const content = await booksService.getChapterContent(
|
||||
bookId,
|
||||
chapter,
|
||||
provider,
|
||||
source
|
||||
source,
|
||||
lang
|
||||
);
|
||||
|
||||
return reply.send(content);
|
||||
|
||||
Reference in New Issue
Block a user