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, c) {
			http.ServeFile(w, r, c.RSSFile)
		}
	}
}