jointakahe / takahe

An ActivityPub/Fediverse server
BSD 3-Clause "New" or "Revised" License
1.1k stars 83 forks source link

add type to api url path parameter #714

Open alphatownsman opened 1 month ago

alphatownsman commented 1 month ago

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.