Put post preview behind auth
This commit is contained in:
parent
09acb111a2
commit
3cdee89c96
@ -222,7 +222,9 @@ func (a *api) handler() http.Handler {
|
||||
"DELETE": authMiddleware(auther,
|
||||
formMiddleware(a.deletePostHandler()),
|
||||
),
|
||||
"PREVIEW": formMiddleware(a.previewPostHandler()),
|
||||
"PREVIEW": authMiddleware(auther,
|
||||
formMiddleware(a.previewPostHandler()),
|
||||
),
|
||||
}),
|
||||
))
|
||||
v2Mux.Handle("/assets/", http.StripPrefix("/assets",
|
||||
|
Loading…
Reference in New Issue
Block a user