Skip to content

Commit

Permalink
Running feed under / instead of /feed
Browse files Browse the repository at this point in the history
  • Loading branch information
kpachhai committed May 28, 2024
1 parent 377c137 commit 8650613
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8650613

Please sign in to comment.