Add collection handlers, routes, feeds, sitemaps
This commit is contained in:
8
request.go
Normal file
8
request.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package writefreely
|
||||
|
||||
import "mime"
|
||||
|
||||
func IsJSON(h string) bool {
|
||||
ct, _, _ := mime.ParseMediaType(h)
|
||||
return ct == "application/json"
|
||||
}
|
Reference in New Issue
Block a user