diff --git a/src/controllers/home.js b/src/controllers/home.js index 1c04453..d92a1dd 100644 --- a/src/controllers/home.js +++ b/src/controllers/home.js @@ -31,4 +31,7 @@ Router.post("/upload", ImageServices.upload.single("upload"), (req, res) => { res.send(req.file); }); +Router.get("/session", function (req, res) { + res.send(req.session); +}); export default Router; diff --git a/src/views/home/welcome.ejs b/src/views/home/welcome.ejs index 0c46dee..19033ff 100644 --- a/src/views/home/welcome.ejs +++ b/src/views/home/welcome.ejs @@ -51,6 +51,7 @@