OPDS: добавлен раздел "Жанры", в поиск добавлен раздел "Поиск книг в жанре" (#9)

This commit is contained in:
Book Pauk
2023-01-28 18:14:35 +07:00
parent 4d6da6a9b7
commit 5519e23e02
7 changed files with 31 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ const BasePage = require('./BasePage');
const AuthorPage = require('./AuthorPage');
const SeriesPage = require('./SeriesPage');
const TitlePage = require('./TitlePage');
const GenrePage = require('./GenrePage');
class RootPage extends BasePage {
constructor(config) {
@@ -13,6 +14,7 @@ class RootPage extends BasePage {
this.authorPage = new AuthorPage(config);
this.seriesPage = new SeriesPage(config);
this.titlePage = new TitlePage(config);
this.genrePage = new GenrePage(config);
}
async body(req) {
@@ -30,6 +32,7 @@ class RootPage extends BasePage {
this.authorPage.myEntry(),
this.seriesPage.myEntry(),
this.titlePage.myEntry(),
this.genrePage.myEntry(),
];
return this.makeBody(result, req);