aboutsummaryrefslogtreecommitdiff
path: root/http/server.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--http/server.go7
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 {