From 5a990719a02f4fd33817a2188be17b3b50498b49 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Thu, 29 Dec 2022 11:43:54 -0500 Subject: builds? --- http/server.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'http/server.go') diff --git a/http/server.go b/http/server.go index b3d3c9b..b02e5c9 100644 --- a/http/server.go +++ b/http/server.go @@ -76,5 +76,22 @@ func (s *Server) Start(zapWriter io.Writer) { } }) + // // outbox single + // router.GET("/actors/:actor/outbox/:id", func(c *gin.Context) { + // actorParam := c.Param("actor") + // var resource map[string]interface{} + // if c.Query("page") == "true" { + // resource, _ = s.registry.OutboxPage(actorParam) + // } else { + // resource, _ = s.registry.Outbox(actorParam) + // } + // if resource != nil { + // c.Writer.Header().Set("Content-Type", "application/activity+json") + // c.JSON(http.StatusOK, resource) + // } else { + // c.JSON(http.StatusNotFound, nil) + // } + // }) + router.Run() } -- cgit v1.2.3