Search⌘ K
AI Features

Challenge: Create the About and Dashboard Routes

Explore how to create two types of routes in AdonisJs: a public About page and a protected Dashboard page using middleware. Learn to apply auth checks to restrict access and send responses, gaining practical skills in routing and access control within AdonisJs applications.

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 ...