mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-07 08:06:37 +08:00
feat(zone): add Cloudflare-style traffic overview charts
Expose Zone stats API with multi-host access-log aggregates and time series, and render unique visitors, requests and data served on the Zone overview with 24h/7d/30d range controls.
This commit is contained in:
@@ -15,6 +15,7 @@ func registerZoneRoutes(apiGroup *gin.RouterGroup) {
|
||||
apiutil.RegisterCollection(zoneGroup, "GET", zone.ListHandler)
|
||||
apiutil.RegisterCollection(zoneGroup, "POST", zone.CreateHandler)
|
||||
zoneGroup.GET("/:id/overview", zone.GetOverviewHandler)
|
||||
zoneGroup.GET("/:id/stats", zone.GetStatsHandler)
|
||||
zoneGroup.POST("/:id/update", zone.UpdateHandler)
|
||||
zoneGroup.POST("/:id/delete", zone.DeleteHandler)
|
||||
zoneGroup.POST("/:id/domains", zone.CreateDomainHandler)
|
||||
|
||||
Reference in New Issue
Block a user