Put post preview behind auth

This commit is contained in:
Brian Picciano 2022-05-20 11:20:02 -06:00
parent 09acb111a2
commit 3cdee89c96

View File

@ -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",