03414536

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Reduce duplication in routes with subrouters (#49)

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>

Reviewed-on: https://codeberg.org/mtlynch/grosiree/pulls/49
Co-authored-by: Michael Lynch <git@mtlynch.io>
Co-committed-by: Michael Lynch <git@mtlynch.io>

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 1s 1s 1s
Eval 1s 27s 27s 28s
Build 2s 1m33s 51s 53s
Test - - - -
Deploy - - - -
Suite 0s 2m02s 53s 53s

Timeline

0s10s20s30s40s50s