1e981910

By: Michael Lynch <git@mtlynch.io>

Reduce duplication in routes with subrouters

Use a subrouter for API routes so requireAuthenticationAPI is applied
once, and a subrouter for view routes so requireAuthentication and
enforceContentSecurityPolicy are applied once.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 1s 1s 1s
Eval 1s 27s 27s 28s
Build 2s 2m56s 1m27s 1m30s
Test - - - -
Deploy - - - -
Suite 0s 3m24s 1m30s 1m30s

Timeline

0s10s20s30s40s50s1m1m10s1m20s1m30s