diff options
author | Andinus <andinus@nand.sh> | 2020-03-27 22:43:11 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-03-27 22:43:11 +0530 |
commit | b0b83af1c45c2d5ee587dc96847e25c95a3d50b0 (patch) | |
tree | 09aeffb9ee5538a002d76457d2cfdc50257c67f2 /cmd/perseus/main.go | |
parent | 79b376a659a1d58db01f60ad049110363fbf15fc (diff) | |
download | perseus-b0b83af1c45c2d5ee587dc96847e25c95a3d50b0.tar.gz |
Add login handler
Diffstat (limited to 'cmd/perseus/main.go')
-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()) |