-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtimes/js: Added middleware functionality #1631
Conversation
All committers have signed the CLA. |
2924d37
to
04dd70c
Compare
a2c3481
to
7c5d4ca
Compare
any luck on this PR, cc @fredr @eandre, I actually need a way to set context/data from an handler too; after hook could benefit from this to determine behavior, or is there another alternative way to do this aside from raw? seems blocking my effort on this, and i'm avoiding forklift migration. solarsoft0/encore-better-auth#1 |
without this, i would need to resort to handling middleware manually like its currently being done, which makes it less of encore, if that makes sense. |
hey @solarsoft0, this PR stalled over Christmas and new years vacation, but I'm back now and we should soon get this merged. We are exploring some different approaches for the implementation first |
7c5d4ca
to
3c0ae7c
Compare
3c0ae7c
to
766e255
Compare
thank you! I can see it's reaaaaady! |
Adds a way to set custom status codes and an api for passing data from middlewares to the handler.
To access data in the handler