seamapi / edgespec

☃️ an API framework for everywhere.
MIT License
5 stars 2 forks source link

Allow middleware to declare parameters #109

Open codetheweb opened 8 months ago

codetheweb commented 8 months ago

Middleware should be allowed to declare parameters that get merged with route-level parameters.

For example, if there's an authentication middleware that relies on a property called access_token being present in the JSON body, it should be able to declare this directly on itself and receive the parsed value.

Alternatives: