diff --git a/main.go b/main.go index 9e08746..c72721e 100644 --- a/main.go +++ b/main.go @@ -63,7 +63,10 @@ INSERT INTO runs(date) VALUES (now()); results = append(results, d) } - ctx.JSON(http.StatusOK, results) + ctx.JSON(http.StatusOK, response{ + Env: os.Environ(), + Runs: results, + }) }) if err := r.Run(":8080"); err != nil { @@ -75,3 +78,8 @@ type data struct { ID int `json:"id"` Date time.Time `json:"date"` } + +type response struct { + Env []string `json:"env"` + Runs []data `json:"runs"` +}