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
|
|
|
|
}
|
|
|
|
|
2025-01-19 08:59:36 +01:00
|
|
|
http.ServeFile(w, r, c.AtomFile)
|
2024-10-27 15:12:30 +01:00
|
|
|
}
|
|
|
|
}
|