aboutsummaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--http/server.go17
1 files changed, 17 insertions, 0 deletions
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()
}