diff options
Diffstat (limited to 'cmd/web/main.go')
| -rw-r--r-- | cmd/web/main.go | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/cmd/web/main.go b/cmd/web/main.go index 6db58d9..045f60a 100644 --- a/cmd/web/main.go +++ b/cmd/web/main.go @@ -10,8 +10,6 @@ import ( "os" "strconv" "strings" - - "github.com/gorilla/mux" ) var ( @@ -55,20 +53,7 @@ func main() { go a.installer() - r := mux.NewRouter() - - 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))) - r.HandleFunc("/steam-export-web.exe", ServeSelf) - r.HandleFunc("/download/{game}", a.HandleDownload) - r.Handle("/status", UnauthorizedIfNotLocal(http.HandlerFunc(a.HandleStats))) - r.PathPrefix("/static").Handler( - http.FileServer(http.FS(embeddedStatic))) - r.HandleFunc("/", a.HandleIndex) - - s := http.Server{Handler: r} + s := http.Server{Handler: a} for i := 0; i < 5; i++ { l, err := net.Listen("tcp", Listen) |
