Effect CommunityEC
Effect Community14mo ago
5 replies
thewilkybarkid

Creating an `HttpRouter` with many routes without chunking

Is there a way to create a HttpRouter with many routes in one go? pipe has a limit of 20, and I'm trying to avoid rather arbitrary chunking into separate pipes (i.e. HttpRouter.empty.pipe(HttpRouter.all(...), ...).pipe(HttpRouter.all(...), ...)). I'm dealing with a whole bunch of legacy redirects that don't have natural groupings.
Was this page helpful?