Wind

Results 261 comments of Wind

actually my plugins dream was like this. ```ts import { H3, defineEventHandler, defineRoute, readBody, readValidatedBody } from "h3"; import { z } from "zod"; export const book = defineRoute({ method:...

I think a name change is necessary. middleware -> plugin ```ts export const book = defineRoute({ method: "GET", route: "/api/books", plugin: [ (event)=> {}, ], ``` and Plugin -> Module...

I think defineRoute should definitely come out of here so that we can record steady progress in all kinds of projects.

@OskarLebuda I have tested it and it is impossible to separate it on the cli side and to create tools like OpenAPI, or to combine path + methods in the...

Yes, we are open to all ideas, always share. The only thing that needs to be considered is how to merge the same path, method etc structures from different files,...

@pi0 You're right, I shouldn't divide opinions. They should test it and maybe they'll find a better way. @OskarLebuda We can test your idea and if you are sure, we...

I created a pr. Let's check it. https://github.com/h3js/h3/pull/1143 :D `defineWebSocketRoute` I will send it later as a separate pr

I created a pr. Let's check it. defineWebSocketRoute - https://github.com/h3js/h3/pull/1149

I can't solve this error either, it came up out of nowhere