Skip to content

Commit

Permalink
allow only GET for /org/keys
Browse files Browse the repository at this point in the history
  • Loading branch information
dencoded committed Mar 30, 2018
1 parent b9b9038 commit 76dabdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func loadAPIEndpoints(muxer *mux.Router) {
r.HandleFunc("/reload", allowMethods(resetHandler(nil), "GET"))

if !isRPCMode() {
r.HandleFunc("/org/keys", allowMethods(orgHandler, "POST", "PUT", "GET", "DELETE"))
r.HandleFunc("/org/keys", allowMethods(orgHandler, "GET"))
r.HandleFunc("/org/keys/{keyName:[^/]*}", allowMethods(orgHandler, "POST", "PUT", "GET", "DELETE"))
r.HandleFunc("/keys/policy/{keyName}", allowMethods(policyUpdateHandler, "POST"))
r.HandleFunc("/keys/create", allowMethods(createKeyHandler, "POST"))
Expand Down

0 comments on commit 76dabdb

Please sign in to comment.