summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--srv/src/http/api.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/srv/src/http/api.go b/srv/src/http/api.go
index bbf4419..4740853 100644
--- a/srv/src/http/api.go
+++ b/srv/src/http/api.go
@@ -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",