⚗️ Play with activitypub

This commit is contained in:
2025-02-16 18:21:48 +08:00
parent 60fa7a5bff
commit db59826253
4 changed files with 101 additions and 1 deletions

View File

@@ -7,6 +7,12 @@ import (
func MapAPIs(app *fiber.App, baseURL string) {
api := app.Group(baseURL).Name("API")
{
activitypub := api.Group("/activitypub").Name("ActivityPub API")
{
activitypub.Get("/publishers/:name", apGetPublisher)
activitypub.Get("/posts", apGetPost)
}
publishers := api.Group("/publishers").Name("Publisher API")
{
publishers.Get("/", listRelatedPublisher)