AlexCouch / pluvo

Pluvo is a modern web framework purely in Gleam built ontop of mist
4 stars 0 forks source link

Apply middleware during execution, not setup #14

Closed AlexCouch closed 8 months ago

AlexCouch commented 8 months ago

Description

Right now, the middleware is applied during registration, however, we need the middleware to execute regardless of whether the given path exists in the router or not. If we move the apply middleware logic to the main request handler function, then we can fix issue #13