diff options
author | Julio Capote <jcapote@gmail.com> | 2022-12-29 16:43:54 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2022-12-29 16:43:54 +0000 |
commit | 5a990719a02f4fd33817a2188be17b3b50498b49 (patch) | |
tree | 24c4c67c03a056004b9145f62418fae0978196fe /http | |
parent | 2408a50c46afad193e89f9381eb999cb5e8facab (diff) | |
download | communique-5a990719a02f4fd33817a2188be17b3b50498b49.tar.gz |
builds?
Diffstat (limited to 'http')
-rw-r--r-- | http/server.go | 17 |
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() } |