| 101 | describe("middleware", () => { |
| 102 | it.effect("error", () => { |
| 103 | class M extends HttpApiMiddleware.Service<M>()("Http/Logger", { |
| 104 | error: Schema.String |
| 105 | .pipe( |
| 106 | HttpApiSchema.status("MethodNotAllowed"), |
| 107 | HttpApiSchema.asText() |
| 108 | ) |
| 109 | }) {} |
| 110 | |
| 111 | const Api = HttpApi.make("api") |
| 112 | .add( |