Removed dist and added cache to monitor

This commit is contained in:
2022-07-07 00:36:12 +02:00
parent 9fd04082f7
commit 095b08e300
9 changed files with 67 additions and 43 deletions
+1 -2
View File
@@ -11,8 +11,7 @@ func (r *Router) ApiMonitor(api fiber.Router) {
// - "/api/monitor/status?script=SCRIPT_NAME" where SCRIPT_NAME is the name of a file inside "./scripts"
api.Get("/status", func(c *fiber.Ctx) error {
if qScript := c.Query("script"); qScript != "" {
output, err := r.Monitor.GetLastOutput(qScript)
output, err := r.Monitor.GetOutput(qScript)
if err != nil {
return err
}