Removed dist and added cache to monitor
This commit is contained in:
+1
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user