Understanding Middleware Usage with Routers vs. APIs in Effect Typescript
Why the examples of some middlewares use a router insted of an API?? https://github.com/Effect-TS/effect/blob/main/packages/platform/README.md#middleware-requesttime I already have an API defined, but I need to access some service at request time. Why are two ways of define a middleware? What is the difference? And why all the examples of this second way of defining it use a router instead of an API?