diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2021-03-19 21:19:42 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2021-03-19 21:19:42 -0400 |
| commit | 0e62a3b46b25e7c101b14ed44235f3c276982fc0 (patch) | |
| tree | fe37304d6e36dcb5ebe1e921a20795c38d476165 /cmd/web/handlers.go | |
| parent | 1e435e039d95ad8834dc3f3cd244ff87d5624c73 (diff) | |
| download | steam-export-0e62a3b46b25e7c101b14ed44235f3c276982fc0.tar.gz steam-export-0e62a3b46b25e7c101b14ed44235f3c276982fc0.tar.xz | |
Sweeping changes to switch to bootstrap and make the UI overall a bit more user friendly
Diffstat (limited to 'cmd/web/handlers.go')
| -rw-r--r-- | cmd/web/handlers.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cmd/web/handlers.go b/cmd/web/handlers.go index b8fa705..b9b863a 100644 --- a/cmd/web/handlers.go +++ b/cmd/web/handlers.go @@ -1,13 +1,13 @@ package main import ( - "fmt" - "strings" - "net/url" - "os" "encoding/json" + "fmt" "io" "net/http" + "net/url" + "os" + "strings" "time" "github.com/gorilla/mux" @@ -197,11 +197,10 @@ 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) }() return } - |
