-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
replace setup with hooks #670
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sveltejs/kit/ELQfFiuwdCgvBn4tYpRAoEaRP2gj |
The docs explain the changes: 04-hooks.md. This should give us all the flexibility we need to create new endpoints programmatically (e.g. for auth), modify request/response headers, modify bodies, add custom logging, and so on. It should also be possible to use existing connect middleware via a compatibility layer, which is left as an exercise to the reader. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a good API, and sorry for all the sarcastic things I was saying about it in chat yesterday
i would hope for nothing less |
#334 (comment). Working on docs