Skip to content
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

feat: webhook channel query param #40

Merged
merged 4 commits into from
Mar 30, 2024
Merged

Conversation

Archisman-Mridha
Copy link
Contributor

@Archisman-Mridha Archisman-Mridha commented Mar 14, 2024

Fixes #39

Events can now be received at both /events or /events/<channel-name> endpoints

@bluebrown
Copy link
Owner

looks ok so far. Perhaps you could use mux routing capabilities to register the route for both, path and query, so the code inside the handler has no special handling. It will just use the mux.Vars map. https://github.com/gorilla/mux?tab=readme-ov-file#registered-urls

Another things that would be nice is giving some deprecation notice. Not sure where this could be. Probably in the logs and or as response to the webhook event. In that case we probably do need some special handling to know wether or not to emit the notice.

Signed-off-by: Nico Braun <rainbowstack@gmail.com>
Signed-off-by: Nico Braun <rainbowstack@gmail.com>
@bluebrown bluebrown changed the title Events can now be received at both /events or /events/<channel-name> endpoints feat: webhook channel query param Mar 30, 2024
@bluebrown bluebrown merged commit 806fde4 into bluebrown:main Mar 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use path parameter for channel name
2 participants