From 890f03f7146f51a9152161be5ef609382e9018c4 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 13 2017 09:42:02 +0000 Subject: Drop the @localonly restriction on endpoints called by JS By restricting this endpoints to only the machine running pagure we are in fact blocking them when queried over javascript. Which is a pity since these two endpoints are meant to be queried via javascript. So let's just lift the restriction Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/internal/__init__.py b/pagure/internal/__init__.py index f25ed94..2df97c2 100644 --- a/pagure/internal/__init__.py +++ b/pagure/internal/__init__.py @@ -401,7 +401,6 @@ def get_ticket_template(repo, namespace=None, username=None): @PV.route('/branches/commit/', methods=['POST']) -@localonly def get_branches_of_commit(): """ Return the list of branches that have the specified commit in """ @@ -503,7 +502,6 @@ def get_branches_of_commit(): @PV.route('/branches/heads/', methods=['POST']) -@localonly def get_branches_head(): """ Return the heads of each branch in the repo, using the following structure: