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.
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.