Add collection handlers, routes, feeds, sitemaps

This commit is contained in:
Matt Baer
2018-11-08 01:19:03 -05:00
parent af872127c6
commit ebeacff43c
10 changed files with 1502 additions and 34 deletions

8
request.go Normal file
View File

@@ -0,0 +1,8 @@
package writefreely
import "mime"
func IsJSON(h string) bool {
ct, _, _ := mime.ParseMediaType(h)
return ct == "application/json"
}