This commit is contained in:
xing 2023-04-14 02:37:40 +08:00
parent ddd4bc86f3
commit f54b005963

View File

@ -64,6 +64,7 @@ func zhihuDaily(w http.ResponseWriter, req *http.Request) {
}
func tjxz(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, fetch("https://feedx.best/rss/tjxz.xml", func(s string) string {
return filterItem(s, time.Now().Day(), 0)
}))
@ -85,6 +86,7 @@ func main() {
if port == "" {
port = ":80"
}
time.Local = time.FixedZone("CST", 3600*8)
http.HandleFunc("/pentitugua", penti)
http.HandleFunc("/zhihuDaily", zhihuDaily)
http.HandleFunc("/tjxz", tjxz)