Closed Juanmcuello closed 1 year ago
It seems Cuba is not forwarding kargs to the app, so this is not working for me:
API.use MyMiddleware, foo, bar: 'baz'
I can create a PR to forward kargs if that makes sense. Something like this:
def self.use(middleware, *args, **karsg, &block) app.use(middleware, *args, **karsg, &block) end
@soveran , just to know if you had a chance to take a look at this. Thanks!
@Juanmcuello Hey! Yes, please create a PR. Use kwargs as the name of that argument.
kwargs
Thanks!
Done!
It seems Cuba is not forwarding kargs to the app, so this is not working for me:
I can create a PR to forward kargs if that makes sense. Something like this: