--- const slices = [ { route: 'GET /prices', chain: ['market', 'handler'], note: 'A public endpoint never asks for a user, so authentication is not in its graph slice.', }, { route: 'GET /portfolio', chain: ['session', 'auth', 'user', 'portfolio', 'handler'], note: 'A protected endpoint needs the user, so Green Tea follows the graph and includes it.', }, ]; ---

Route slicing

Run what the route needs. Not everything registered around it.

Routes don't inherit infrastructure just because it was registered nearby. Execution follows dependency demand.