You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defineRouteMeta is not intended for this use case. It's for specifying OpenAPI meta.
Also, middleware is called before the actual request, so there is no way to get the route metadata in the middleware.
We can have an arbitrary meta object in route rules. But that would probably be a deviation from web standards.
Activity
ssahillppatell commentedon Jun 17, 2025
defineRouteMetais not intended for this use case. It's for specifying OpenAPI meta.Also, middleware is called before the actual request, so there is no way to get the route metadata in the middleware.
We can have an arbitrary meta object in route rules. But that would probably be a deviation from web standards.
naveeng2402 commentedon Jul 7, 2025
h3js/h3#1118
I opened this issue requesting something similar to this