How do you set a parameter on a pre-middleware?

Answered

Hi I'm using a middleware for securing my endpoint and I'm wondering if there could be a way to pass a parameter dynamically to the middleware so I could set a permission to access the endpoint.

I tried setting the permission into the inputs section of a function but it is not secured as you can change it freely on the frontend.

Any other methods you guys can share?

1
1 reply