aboutsummaryrefslogtreecommitdiff
path: root/cmd/web
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web')
-rw-r--r--cmd/web/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/web/main.go b/cmd/web/main.go
index 875b2d8..45b64ae 100644
--- a/cmd/web/main.go
+++ b/cmd/web/main.go
@@ -44,7 +44,7 @@ func main() {
r := mux.NewRouter()
- r.HandleFunc("/quit", HandleQuit)
+ r.Handle("/quit", UnauthorizedIfNotLocal(http.HandlerFunc(HandleQuit)))
r.Handle("/setLib", UnauthorizedIfNotLocal(http.HandlerFunc(a.HandleSetLib)))
r.Handle("/delete", UnauthorizedIfNotLocal(http.HandlerFunc(a.HandleDelete)))
r.Handle("/install", UnauthorizedIfNotLocal(http.HandlerFunc(a.HandleInstall)))