aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/index.go
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-11-21 16:44:48 -0500
committerMitch Riedstra <mitch@riedstra.us>2020-11-21 16:44:48 -0500
commit3e1b39031437eaf48c5c6ea895dd632b1249b0a2 (patch)
tree3b778d03d074b3798a4c53bbf19b1b0be389260d /cmd/web/index.go
parent415c4a1a48502ae5180c48188c8f2e94d9c9d92c (diff)
downloadsteam-export-3e1b39031437eaf48c5c6ea895dd632b1249b0a2.tar.gz
steam-export-3e1b39031437eaf48c5c6ea895dd632b1249b0a2.tar.xz
Allow the library to be changed. Fix up quit handler. Improve logging
Diffstat (limited to 'cmd/web/index.go')
-rw-r--r--cmd/web/index.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/web/index.go b/cmd/web/index.go
index 59310c0..2eb3695 100644
--- a/cmd/web/index.go
+++ b/cmd/web/index.go
@@ -75,6 +75,13 @@ http://127.0.0.1:8899/install?uri=http://my-server-ip-or-hostname/download/My Ga
</p>
+Change library path
+<form action="/setLib" method="GET">
+ <input type="text" name="path" />
+ <input type="submit" value="Update">
+</form>
+
+
</body>
`))
)
@@ -93,4 +100,5 @@ func index(w http.ResponseWriter, r *http.Request) {
if err != nil {
Logger.Printf("While Rendering template: %s", err)
}
+ Logger.Printf("Client %s Index page", r.RemoteAddr)
}