LemmyNet/activitypub-federation-rust

Automatically generate HTTP routes for actors and objects

Nutomic opened this issue · 1 comments

It would be nice if the library could automatically generate required HTTP routes, because these require a lot of boilerplate code. This would at minimum be a GET endpoint for each actor/object, and a POST inbox endpoint for actors. There are also other endpoints such as outbox, followers and shared inbox.

Examples:

This would require passing format strings to the library, so that it knows at which path the routes should be created.

I found myself looking for this today, so I might make a PR soon :)