diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-08-04 20:06:07 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-08-04 20:06:07 -0400 |
| commit | 742938b00222c7ad57ad11eb24850d9202c2503d (patch) | |
| tree | e0d1d033027d5dd553c213ed41bb8ae201d6a285 /cmd/web/main.go | |
| parent | a5a49ff08056a67cc57435f219aa157342a0d9a0 (diff) | |
| download | steam-export-742938b00222c7ad57ad11eb24850d9202c2503d.tar.gz steam-export-742938b00222c7ad57ad11eb24850d9202c2503d.tar.xz | |
Pretty large structural changes. Non-building development snapshot
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) |
