diff --git a/src/routes/ma-collection.js b/src/routes/ma-collection.js index 51ff0ee..653c844 100644 --- a/src/routes/ma-collection.js +++ b/src/routes/ma-collection.js @@ -10,7 +10,7 @@ const router = express.Router(); router.route("/").get(ensureLoggedIn("/connexion"), async (req, res, next) => { try { - const page = new Albums(req, "mon-compte/ma-collection"); + const page = new Albums(req, "mon-compte/ma-collection/index"); await page.loadMyCollection(); diff --git a/views/pages/mon-compte/ma-collection.ejs b/views/pages/mon-compte/ma-collection/index.ejs similarity index 100% rename from views/pages/mon-compte/ma-collection.ejs rename to views/pages/mon-compte/ma-collection/index.ejs