summaryrefslogtreecommitdiff
path: root/internal/server/router.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server/router.go')
-rw-r--r--internal/server/router.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/internal/server/router.go b/internal/server/router.go
index 989766c..7034103 100644
--- a/internal/server/router.go
+++ b/internal/server/router.go
@@ -10,8 +10,9 @@ func (srv *server) ListenToRequests() {
h := srv.actions
mux := http.NewServeMux()
server := &http.Server{
- Addr: fmt.Sprintf("localhost:%s", srv.config.ServerConfig.Port),
- Handler: h.GetSession(mux),
+ Addr: fmt.Sprintf("localhost:%s", srv.config.ServerConfig.Port),
+ // Handler: h.GetSession(mux),
+ Handler: mux,
ReadTimeout: time.Second * 5,
WriteTimeout: time.Second * 5,
}
@@ -21,8 +22,8 @@ func (srv *server) ListenToRequests() {
mux.HandleFunc("GET /ping", h.Ping)
mux.HandleFunc("GET /", h.MainPage)
- mux.HandleFunc("POST /login", h.HandleLogin)
- mux.HandleFunc("POST /signup", h.HandleSignup)
+ // mux.HandleFunc("POST /login", h.HandleLogin)
+ // mux.HandleFunc("POST /signup", h.HandleSignup)
// ====== elements ======