| 339 | |
| 340 | it("middleware error", () => { |
| 341 | class M extends HttpApiMiddleware.Service<M>()("Http/Logger", { |
| 342 | error: Schema.String |
| 343 | .pipe( |
| 344 | HttpApiSchema.status(405), |
| 345 | HttpApiSchema.asText() |
| 346 | ) |
| 347 | }) {} |
| 348 | |
| 349 | const Api = HttpApi.make("api") |
| 350 | .add( |