Run validators before route middleware.
parent
abb260632f
commit
617d7f17c8
|
@ -550,8 +550,8 @@ export class OpenAPIHono<
|
||||||
this.on(
|
this.on(
|
||||||
[route.method],
|
[route.method],
|
||||||
route.path.replaceAll(/\/{(.+?)}/g, '/:$1'),
|
route.path.replaceAll(/\/{(.+?)}/g, '/:$1'),
|
||||||
...middleware,
|
|
||||||
...validators,
|
...validators,
|
||||||
|
...middleware,
|
||||||
handler
|
handler
|
||||||
)
|
)
|
||||||
return this
|
return this
|
||||||
|
|
Loading…
Reference in New Issue