diff options
author | Julio Capote <jcapote@gmail.com> | 2022-12-19 03:55:34 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2022-12-19 03:55:34 +0000 |
commit | a5a1907249d2666966c6c412f8be17e5b2c67e57 (patch) | |
tree | 615929dc0419935664b15b4f63235e46cc1e86fc /http/server.go | |
parent | 3761f85966a554cb750809da21995354fb9f9ceb (diff) | |
download | communique-a5a1907249d2666966c6c412f8be17e5b2c67e57.tar.gz |
start of outbox page
Diffstat (limited to 'http/server.go')
-rw-r--r-- | http/server.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/http/server.go b/http/server.go index bec683e..5d0a689 100644 --- a/http/server.go +++ b/http/server.go @@ -61,7 +61,12 @@ func (s *Server) Start(zapWriter io.Writer) { // Outbox router.GET("/actors/:actor/outbox", func(c *gin.Context) { actorParam := c.Param("actor") - resource, _ := s.registry.Outbox(actorParam) + 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.JSON(http.StatusOK, resource) } else { |