add storage API

This commit is contained in:
André Roth
2024-10-01 00:37:56 +02:00
parent aff7b0db50
commit 06cbd29d0d
3 changed files with 40 additions and 0 deletions
+1
View File
@@ -125,6 +125,7 @@ func Router(c *ctx.AptlyContext) http.Handler {
api.GET("/metrics", apiMetricsGet())
}
api.GET("/version", apiVersion)
api.GET("/storage", apiDiskFree)
isReady := &atomic.Value{}
isReady.Store(false)