Views: The view index.ejs
should be rendered by indexRouter
instead of app.js
#29188
Open
3 tasks done
Checks
Describe your suggestion
Here's the screenshot for understanding:
I believe if we're trying to render a view for
index
, it should be done in theindexRouter
file instead ofapp.js
, which can lead to cluttered code if all the views for all the routes are rendered in the main fileapp.js
.I am just a beginner so correct me if I'm wrong. Thanks!
Path
Node / JS
Lesson Url
https://www.theodinproject.com/lessons/nodejs-views
(Optional) Discord Name
willyWonka
(Optional) Additional Comments
I would love to contribute if possible!
The text was updated successfully, but these errors were encountered: