diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/perseus/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/perseus/main.go b/cmd/perseus/main.go index b94793e..6abd3a4 100644 --- a/cmd/perseus/main.go +++ b/cmd/perseus/main.go @@ -30,6 +30,9 @@ func main() { http.HandleFunc("/register", func(w http.ResponseWriter, r *http.Request) { web.HandleRegister(w, r, db) }) + http.HandleFunc("/login", func(w http.ResponseWriter, r *http.Request) { + web.HandleLogin(w, r, db) + }) log.Printf("main/main.go: listening on port %s...", envPort) log.Fatal(srv.ListenAndServe()) |