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

Move webhooks from / to /webhook #227

Merged
merged 9 commits into from
Mar 7, 2022
Merged

Move webhooks from / to /webhook #227

merged 9 commits into from
Mar 7, 2022

Conversation

Half-Shot
Copy link
Contributor

The generic webhooks router currently listens on /:hookId/ which means that while the request paths are short, it causes confusion when a user misconfigures their bridge and gets a 200 response regardless. This PR makes the bridge prefer /webhook, while still supporting /:hookId.

In addition, the bridge now gives an appropriate 404 from both paths when a hookId is not found. The bridge can also be configured to wait until the webhook has finished processing before responding, although this behavior is off by default.

@HarHarLinks
Copy link
Contributor

can you create an issue and ping me on https://github.com/spantaleev/matrix-docker-ansible-deploy when you merge?

@Half-Shot Half-Shot changed the title Move webhooks from / to /webhooks Move webhooks from / to /webhook Mar 7, 2022
@Half-Shot
Copy link
Contributor Author

can you create an issue and ping me on https://github.com/spantaleev/matrix-docker-ansible-deploy when you merge?

Done - spantaleev/matrix-docker-ansible-deploy#1681

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.

2 participants