From 8650613f99f3557528dc6c5077357575c8a4f9ed Mon Sep 17 00:00:00 2001 From: Kiran Pachhai Date: Tue, 28 May 2024 09:31:53 -0400 Subject: [PATCH] Running feed under / instead of /feed --- main.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 21d29a9..f8f1b7e 100644 --- a/main.go +++ b/main.go @@ -21,10 +21,7 @@ import ( ) var ( - allowedOrigins = []string{"*"} - allowedHosts = []string{"*"} - shutdownTimeout = 30 * time.Second - httpConfig = server.HTTPConfig{ + httpConfig = server.HTTPConfig{ ReadTimeout: 60 * time.Second, ReadHeaderTimeout: 60 * time.Second, WriteTimeout: 60 * time.Second, @@ -117,7 +114,7 @@ func main() { if err != nil { fatal(log, "cannot create handler", zap.Error(err)) } - mux.Handle("/feed", handler) + mux.Handle("/", handler) log.Info("Feed handler added") // Start server