Commit d877c11d authored by Pierre-Yves Chibon's avatar Pierre-Yves Chibon

The API endpoints for the internal API should be localonly

parent 4ef2cd32
......@@ -176,6 +176,7 @@ def ticket_add_comment():
@PV.route('/pull-request/merge', methods=['POST'])
@localonly
def mergeable_request_pull():
""" Returns if the specified pull-request can be merged or not.
"""
......@@ -236,6 +237,7 @@ def mergeable_request_pull():
@PV.route('/pull-request/ready', methods=['POST'])
@localonly
def get_pull_request_ready_branch():
""" Return the list of branches that have commits not in the main
branch/repo (thus for which one could open a PR) and the number of
......@@ -334,6 +336,7 @@ def get_pull_request_ready_branch():
@PV.route('/<repo>/issue/template', methods=['POST'])
@PV.route('/fork/<username>/<repo>/issue/template',
methods=['POST'])
@localonly
def get_ticket_template(repo, username=None):
""" Return the template asked for the specified project
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment