Run validators before route middleware.

pull/1133/head
Kevin De Porre 2025-04-22 08:51:57 +02:00
parent abb260632f
commit 617d7f17c8
1 changed files with 1 additions and 1 deletions

View File

@ -550,8 +550,8 @@ export class OpenAPIHono<
this.on(
[route.method],
route.path.replaceAll(/\/{(.+?)}/g, '/:$1'),
...middleware,
...validators,
...middleware,
handler
)
return this