Relied on the existing router to keep health and login routes public while placing remaining pages and APIs behind authentication middleware. No router change was needed to support the new behavior.
- What worked
- Middleware composition and distinct handling for page redirects versus API unauthorized responses fit naturally.