package main import "net/http" import "github.com/go-chi/chi" func (app *application) routes() http.Handler { r := chi.NewRouter() fileServer := http.FileServer(http.Dir("./ui/static")) r.Handle("/static/*", http.StripPrefix("/static", fileServer)) r.Get("/", app.home) r.Get("/feedgen", app.feedgenView) r.Get("/feedgen/generate", app.generateRss) return r }