[PATCH] admin: use POST in routing for adding API keys for users - match template changeset 6f6aab7ca754
Christian Oyarzun
oyarzun at gmail.com
Thu May 21 15:55:32 EDT 2015
# HG changeset patch
# User Christian Oyarzun <oyarzun at gmail.com>
# Date 1432237950 14400
# Thu May 21 15:52:30 2015 -0400
# Node ID 2406baa1ab5ffc66cbd6883a9a87301b9c85e0f2
# Parent 579110ca5178f13254e7e4c7b6043767a11b92a2
admin: use POST in routing for adding API keys for users - match template
changeset 6f6aab7ca754
diff --git a/kallithea/config/routing.py b/kallithea/config/routing.py
--- a/kallithea/config/routing.py
+++ b/kallithea/config/routing.py
@@ -206,7 +206,7 @@
m.connect("edit_user_api_keys", "/users/{id}/edit/api_keys",
action="edit_api_keys", conditions=dict(method=["GET"]))
m.connect("edit_user_api_keys", "/users/{id}/edit/api_keys",
- action="add_api_key", conditions=dict(method=["PUT"]))
+ action="add_api_key", conditions=dict(method=["POST"]))
m.connect("edit_user_api_keys", "/users/{id}/edit/api_keys",
action="delete_api_key",
conditions=dict(method=["DELETE"]))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sfconservancy.org/pipermail/kallithea-general/attachments/20150521/6dcca72f/attachment.html>
More information about the kallithea-general
mailing list