add env stuff to check if seelf works as intended!
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f5a13203d1
commit
9690330cc5
10
main.go
10
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"`
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user