diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2021-03-19 00:55:38 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2021-03-19 00:55:38 -0400 |
| commit | 219e47ae2a10ae6aca42e58abd084a69641ec613 (patch) | |
| tree | ea949ff8a1d60e93f1031a56c692c93965ee69c2 /cmd/web/handlers.go | |
| parent | cd2a6a963c3841fcd83e5e2910dfa4d9241c97f9 (diff) | |
| download | steam-export-219e47ae2a10ae6aca42e58abd084a69641ec613.tar.gz steam-export-219e47ae2a10ae6aca42e58abd084a69641ec613.tar.xz | |
devdev-mar-2021
Diffstat (limited to 'cmd/web/handlers.go')
| -rw-r--r-- | cmd/web/handlers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web/handlers.go b/cmd/web/handlers.go index b8fa705..359fab1 100644 --- a/cmd/web/handlers.go +++ b/cmd/web/handlers.go @@ -24,7 +24,7 @@ func (a *App) HandleIndex(w http.ResponseWriter, r *http.Request) { a.Status.Lock() defer a.Status.Unlock() - err := a.Templates.ExecuteTemplate(w, "index", + err := a.MuhTemplates().ExecuteTemplate(w, "index.html", struct { Lib *steam.Library Info *statusInfo @@ -197,7 +197,7 @@ func (a *App) HandleSetLib(w http.ResponseWriter, r *http.Request) { func HandleQuit(w http.ResponseWriter, r *http.Request) { Logger.Println("Quit was called, exiting") w.Header().Add("Content-type", "text/plain") - w.Write([]byte("Shutting down...")) + w.Write([]byte("Shutting down... feel free to close this")) go func() { time.Sleep(time.Second * 2) os.Exit(0) |
