On 02/13/2014 11:58 AM, Matej Stuchlik wrote:
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
-@api_ns.route('/coprs/<username>/<coprname>/detail/<chrootname>/', methods=["POST"]) +@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()
Applied. Thanks.