add env stuff to check if seelf works as intended!
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
YuukanOO 2023-05-01 16:10:14 +02:00
parent f5a13203d1
commit 9690330cc5

10
main.go
View File

@ -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"`
}