forked from dbroqua/MusicTopus
Added statistics page
This commit is contained in:
parent
30bd3ebdf9
commit
8d22435b90
9 changed files with 290 additions and 5 deletions
|
@ -38,6 +38,23 @@ router
|
|||
}
|
||||
});
|
||||
|
||||
router
|
||||
.route("/statistiques")
|
||||
.get(ensureLoggedIn("/connexion"), async (req, res, next) => {
|
||||
try {
|
||||
const page = new Albums(
|
||||
req,
|
||||
"mon-compte/ma-collection/statistiques"
|
||||
);
|
||||
|
||||
await page.statistics();
|
||||
|
||||
render(res, page);
|
||||
} catch (err) {
|
||||
next(err);
|
||||
}
|
||||
});
|
||||
|
||||
router
|
||||
.route("/exporter")
|
||||
.get(ensureLoggedIn("/connexion"), async (req, res, next) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue