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.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/srv/src/api/api.go b/srv/src/api/api.go
index bc56164..adecff5 100644
--- a/srv/src/api/api.go
+++ b/srv/src/api/api.go
@@ -216,6 +216,9 @@ func (a *api) handler() http.Handler {
apiutil.MethodMux(map[string]http.Handler{
"GET": a.renderPostHandler(),
"EDIT": a.editPostHandler(),
+ "POST": authMiddleware(auther,
+ formMiddleware(a.postPostHandler()),
+ ),
"DELETE": authMiddleware(auther,
formMiddleware(a.deletePostHandler()),
),