Goals. Build a private admin page accessible only to users who have the admin role. The page displays a list of all the users from MongoDB.
Admin users can edit user roles and view when each user last signed in.
The code setup makes it easy to add more editable features in the future by reusing code you already wrote and mimicking flows you create.
Gain repetition with important concepts covered in previous chapters but in a slightly different content.
Modify the architecture, code, and approach from the profile page to make it suitable for admin purposes.
Despite the adjustments, like in the previous chapter, you build the fullstack flow for an editable input, work with the router to redirect users based on authorization and access status, and write client pages, build server routes, and send HTTP requests.