cpolis/cmd/calls/atom.go

18 lines
279 B
Go
Raw Normal View History

2024-10-27 15:12:30 +01:00
package calls
import (
"net/http"
b "streifling.com/jason/cpolis/cmd/backend"
)
func ServeAtomFeed(c *b.Config) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
if !tokenIsVerified(w, r, c) {
return
}
http.ServeFile(w, r, c.AtomFile)
2024-10-27 15:12:30 +01:00
}
}