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

add type to api url path parameter #714

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alphatownsman
Copy link
Contributor

some Mastodon app will routinely ping /api/v1/notifications/policy endpoint which has not been implemented in Takahe. However, it matches /api/v1/notifications/<id> currently, so it causes frequent 500s in log.

This PR adds correct types to api url paths, so HTTP requests like above will get 404 instead of 500.

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.

1 participant