Skip to content

Commit

Permalink
chore: mirrorz pack
Browse files Browse the repository at this point in the history
  • Loading branch information
ztelliot committed Feb 29, 2024
1 parent a0989cf commit 18c9947
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manager/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1176,5 +1176,9 @@ func (m *Manager) mirrorZ(c *gin.Context) {
mirrorZ.Site.Disk += "/" + m.option.Total
}

if _, ok := c.GetQuery("pack"); ok {
c.JSON(http.StatusOK, []*mirrorz.MirrorZ{mirrorZ})
return
}
c.JSON(http.StatusOK, mirrorZ)
}

0 comments on commit 18c9947

Please sign in to comment.