dahlia / fedify

ActivityPub server framework in TypeScript
https://fedify.dev/
MIT License
327 stars 13 forks source link

Support trailing slashes for endpoints #81

Open allouis opened 1 week ago

allouis commented 1 week ago

When a dispatcher is configured like:

federation.setOutboxDispatcher('/outbox/{handle}', ...);

Fedify will 404 for requests to /outbox/user/ but work for /outbox/user - it would be great if we could either treat both the same, or issue a redirect so that clients find it easier to work with.