[PATCH] [frontend] Chroot details API now uses GET instead of POST

Matej Stuchlik mstuchli at redhat.com
Thu Feb 13 10:58:24 UTC 2014


---
 coprs_frontend/coprs/views/api_ns/api_general.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/coprs_frontend/coprs/views/api_ns/api_general.py b/coprs_frontend/coprs/views/api_ns/api_general.py
index d43d0dd..0a673d2 100644
--- a/coprs_frontend/coprs/views/api_ns/api_general.py
+++ b/coprs_frontend/coprs/views/api_ns/api_general.py
@@ -321,7 +321,7 @@ def copr_modify_chroot(username, coprname, chrootname):
     jsonout.status_code = httpcode
     return jsonout
 
- at api_ns.route('/coprs/<username>/<coprname>/detail/<chrootname>/', methods=["POST"])
+ at api_ns.route('/coprs/<username>/<coprname>/detail/<chrootname>/', methods=["GET"])
 def copr_chroot_details(username, coprname, chrootname):
     copr = coprs_logic.CoprsLogic.get(flask.g.user, username, coprname).first()
     chroot = coprs_logic.MockChrootsLogic.get_from_name(chrootname, active_only=True).first()
-- 
1.8.5.3


More information about the copr-devel mailing list