26bb7230

Author: Michael Lynch <git@mtlynch.io>

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

Group route middleware with subrouters (#111)

Add a small ServeMux-compatible subrouter helper so routes can share middleware chains without repeating nested handler wrapping at each registration.

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