From a5a1907249d2666966c6c412f8be17e5b2c67e57 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 18 Dec 2022 22:55:34 -0500 Subject: start of outbox page --- http/server.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'http') 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 { -- cgit v1.2.3