Challenge: Create the About and Dashboard Routes
Use what you have learned so far to create the "about" and "dashboard" routes and limit access to the dashboard route using middleware.
We'll cover the following
Problem statement
Create routes to the URLs /about and /dashboard. Use routes and middleware to create a web application so that the about page outputs “About Us” and is accessible to everyone. However, the dashboard page should only be accessible to the users who are already logged in. Since we aren’t logging users in, they will all be denied access.
Expected output
About page
Get hands-on with 1400+ tech skills courses.