Lecture 288:- Assignment adding more routes and controllers
here's an assignment for you to practice adding more routes and controllers to your Express app:
Create a new route and controller for a "About Us" page. The route should be "/about" and the controller should render a view that displays information about your company or project.
Create a new route and controller for a "Contact Us" page. The route should be "/contact" and the controller should render a view that displays a contact form for users to submit inquiries.
Create a new route and controller for a "Blog" page. The route should be "/blog" and the controller should fetch blog post data from your MongoDB database and render a view that displays the blog posts.
Create a new route and controller for a "Single Blog Post" page. The route should be "/blog/:id" where ":id" is the unique identifier for a specific blog post. The controller should fetch the blog post data with the corresponding ID from your MongoDB database and render a view that displays the single blog post.
Add navigation links to your header that link to your new routes ("/about", "/contact", "/blog").
Comments: 2
I am not able to access videos from second class and further. I have already completed first class
When will I get my course?
Now, Your query was resolved.