diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-05-20 19:19:32 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-05-20 19:19:32 -0600 |
commit | 1181af0318059e41d5564e6ef786122c7ee4c8e1 (patch) | |
tree | 9e9f18a21892af880672f944471d9033bfbf61e5 /srv/src/http/api.go | |
parent | c4692f72e3b0bf18f737add2bbd4e353274fe3ac (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.go | 3 |
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()), ), |