| 149 | describe("middleware", () => { |
| 150 | it.effect("error", () => { |
| 151 | class M extends HttpApiMiddleware.Service<M>()("Http/Logger", { |
| 152 | error: Schema.String |
| 153 | .pipe( |
| 154 | HttpApiSchema.status("MethodNotAllowed"), |
| 155 | HttpApiSchema.asText() |
| 156 | ) |
| 157 | }) {} |
| 158 | |
| 159 | const Api = HttpApi.make("api") |
| 160 | .add( |