Closed afgallo closed 6 days ago
Hey @afgallo! 👋🏻
What's wrong with the current middleware?
Hey @afgallo! 👋🏻
What's wrong with the current middleware?
Hey @RomainLanz,
I guess there is nothing wrong with the middleware itself, the documentation doesn't reflect the method signature which is what I've updated in the docs with this PR 👍🏻
Oh yeah, the signature is wrong. It has to be an object. I have changed the example a bit to be less verbose and more accurate than the previous one.
Thanks!
This PR updates the Inertia middleware example in the AdonisJS documentation: https://docs.adonisjs.com/guides/views-and-templates/inertia#share-from-a-middleware