16 lines
259 B
Go
16 lines
259 B
Go
|
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) {
|
||
|
if tokenIsVerified(w, r) {
|
||
|
http.ServeFile(w, r, c.RSSFile)
|
||
|
}
|
||
|
}
|
||
|
}
|