18 lines
279 B
Go
18 lines
279 B
Go
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)
|
|
}
|
|
}
|