summaryrefslogtreecommitdiff
path: root/srv/src/api/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/api/api.go')
-rw-r--r--srv/src/api/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/srv/src/api/api.go b/srv/src/api/api.go
index adecff5..191a7bf 100644
--- a/srv/src/api/api.go
+++ b/srv/src/api/api.go
@@ -222,6 +222,7 @@ func (a *api) handler() http.Handler {
"DELETE": authMiddleware(auther,
formMiddleware(a.deletePostHandler()),
),
+ "PREVIEW": formMiddleware(a.previewPostHandler()),
}),
))
v2Mux.Handle("/assets/", http.StripPrefix("/assets",