SamS
Convex Communityโ€ข2mo agoโ€ข
6 replies
Sam

Middleware

Is it possible to add middleware based on the directories I have?

for example, I have directory A and B and I want to run a permission check on each directory for all queries/mutations inside of it, what's the best way to do this? I considered wrapping the query/mutation and using a custom version of it. but would be much better if we could define a middleware.
Was this page helpful?