mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
fix status page
This commit is contained in:
parent
4592b3b52f
commit
3491d88251
|
@ -14,7 +14,7 @@ func (app *application) statusPage() {
|
||||||
botUptime := humanize.Time(common.GetUptime())
|
botUptime := humanize.Time(common.GetUptime())
|
||||||
|
|
||||||
statusHandler := func(w http.ResponseWriter, req *http.Request) {
|
statusHandler := func(w http.ResponseWriter, req *http.Request) {
|
||||||
io.WriteString(w, fmt.Sprintf("up\n\nlast restart:\t %v\nenv: %v\tcommit: \t%v", botUptime, app.Environment, commit))
|
io.WriteString(w, fmt.Sprintf("up\nlast restart: %v\nenv: %v\ncommit: %v", botUptime, app.Environment, commit))
|
||||||
}
|
}
|
||||||
|
|
||||||
http.HandleFunc("/status", statusHandler)
|
http.HandleFunc("/status", statusHandler)
|
||||||
|
|
Loading…
Reference in a new issue