2024-08-18 11:20:06 +02:00
|
|
|
package calls
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
b "streifling.com/jason/cpolis/cmd/backend"
|
|
|
|
)
|
|
|
|
|
|
|
|
func ServeRSS(c *b.Config) http.HandlerFunc {
|
|
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
2024-08-23 21:45:10 +02:00
|
|
|
if tokenIsVerified(w, r, c) {
|
2024-08-18 11:20:06 +02:00
|
|
|
http.ServeFile(w, r, c.RSSFile)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|