summaryrefslogtreecommitdiff
path: root/internal/server
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-03-29 14:09:42 +0300
committerGrail Finder <wohilas@gmail.com>2025-03-29 14:09:42 +0300
commit7a3a73f2a7f2498c61c71f3242a0fcd6c56dfb69 (patch)
tree04b1999175a76af406ddcf11469280d607242d81 /internal/server
parent3921db6166e2da895257496bb76dd115556699d3 (diff)
Fix: code cleaning
Diffstat (limited to 'internal/server')
-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 ======