summaryrefslogtreecommitdiff
path: root/srv/src/http/api.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-20 19:19:32 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-20 19:19:32 -0600
commit1181af0318059e41d5564e6ef786122c7ee4c8e1 (patch)
tree9e9f18a21892af880672f944471d9033bfbf61e5 /srv/src/http/api.go
parentc4692f72e3b0bf18f737add2bbd4e353274fe3ac (diff)
Don't use EDIT method, only POSTs should use alt methods
Diffstat (limited to 'srv/src/http/api.go')
-rw-r--r--srv/src/http/api.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/srv/src/http/api.go b/srv/src/http/api.go
index 83ea8ab..92f5db1 100644
--- a/srv/src/http/api.go
+++ b/srv/src/http/api.go
@@ -204,8 +204,7 @@ func (a *api) handler() http.Handler {
mux.Handle("/posts/", http.StripPrefix("/posts",
apiutil.MethodMux(map[string]http.Handler{
- "GET": a.renderPostHandler(),
- "EDIT": a.editPostHandler(),
+ "GET": a.renderPostHandler(),
"POST": authMiddleware(a.auther,
formMiddleware(a.postPostHandler()),
),