Skip to content
Advertisement

Tag: model-view-controller

Cannot GET routes other than “/” express

I’m trying to create a web app with the MVC pattern and express in node.js. This is my project structure: project structure image app.js: loginController.js: The problem is that I can access the index page (“/”) but not the login page (“/login”) even when the code for both is almost identical. Here’s the code of indexController.js: I don’t really know

Advertisement