forked from dbroqua/MusicTopus
issue/19 (#20)
!19 Co-authored-by: dbroqua <contact@darkou.fr> Reviewed-on: https://git.darkou.fr/dbroqua/MyMusicLibrary/pulls/20 Co-authored-by: Damien Broqua <dbroqua@noreply.localhost> Co-committed-by: Damien Broqua <dbroqua@noreply.localhost>
This commit is contained in:
parent
18d4970ebd
commit
a0f9ab1f45
35 changed files with 973 additions and 366 deletions
|
@ -117,6 +117,16 @@ router.route("/nous-contacter").get(async (req, res, next) => {
|
|||
}
|
||||
});
|
||||
|
||||
router.route("/composants").get(async (req, res, next) => {
|
||||
try {
|
||||
const page = new Pages(req, "composants");
|
||||
|
||||
render(res, page);
|
||||
} catch (err) {
|
||||
next(err);
|
||||
}
|
||||
});
|
||||
|
||||
router.route("/se-deconnecter").get((req, res) => {
|
||||
req.logout();
|
||||
req.session.destroy(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue