From 57e02ce58f3750896b1afdc8d5381edab54e66db Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 1 May 2025 17:53:18 +0300 Subject: [PATCH] Fix: add mux use --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index ba70178..58ca94c 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,7 @@ import ( func ListenToRequests(port string) error{ mux := http.NewServeMux() server := &http.Server{ + Handler: mux, Addr: port, ReadTimeout: time.Second * 5, WriteTimeout: time.Second * 5,