mirror of https://github.com/jlelse/GoBlog
Fix middleware for drafts
This commit is contained in:
parent
d1850300e5
commit
e0ad125d93
2
http.go
2
http.go
|
@ -166,7 +166,7 @@ func buildHandler() (http.Handler, error) {
|
||||||
}
|
}
|
||||||
for _, path := range dp {
|
for _, path := range dp {
|
||||||
if path != "" {
|
if path != "" {
|
||||||
r.With(cacheMiddleware, minifier.Middleware, authMiddleware).Get(path, servePost)
|
r.With(middleware.NoCache, minifier.Middleware, authMiddleware).Get(path, servePost)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue