Skip to content

Commit

Permalink
fix /libs/ path
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMightyGit committed Feb 17, 2024
1 parent 30ae562 commit fabf8fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/rssole/rssole.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func Start(configFilename, configReadCacheFilename, listenAddress string, update
allFeeds.UpdateTime = updateTime
allFeeds.BeginFeedUpdates()

http.HandleFunc("GET /", index)
http.HandleFunc("GET /{$}", index)
http.HandleFunc("GET /feeds", feedlist)
http.HandleFunc("GET /items", items)
http.HandleFunc("POST /items", items)
Expand All @@ -89,7 +89,7 @@ func Start(configFilename, configReadCacheFilename, listenAddress string, update

// As the static files won't change we force the browser to cache them.
httpFS := http.FileServer(http.FS(wwwlibs))
http.Handle("/libs/", forceCache(httpFS))
http.Handle("GET /libs/", forceCache(httpFS))

slog.Info("Listening", "address", listenAddress)

Expand Down

0 comments on commit fabf8fe

Please sign in to comment.