show changes feature

This commit is contained in:
Alireza Ahmadi
2024-06-08 17:49:03 +02:00
parent 1b9d5e9378
commit 12fe21906e
12 changed files with 254 additions and 6 deletions
+6
View File
@@ -157,6 +157,12 @@ func (a *APIHandler) getHandler(c *gin.Context) {
level := c.Query("l")
logs := a.ServerService.GetLogs(service, count, level)
jsonObj(c, logs, nil)
case "changes":
actor := c.Query("a")
chngKey := c.Query("k")
count := c.Query("c")
changes := a.ConfigService.GetChanges(actor, chngKey, count)
jsonObj(c, changes, nil)
default:
jsonMsg(c, "API call", nil)
}