api: Require POST for /api/push

This commit is contained in:
Janne Heß
2024-08-27 17:34:48 +02:00
committed by Martin Weinelt
parent b1a0501520
commit 916531dc9c
5 changed files with 7 additions and 4 deletions

View File

@ -205,6 +205,7 @@
if (!c) return;
requestJSON({
url: "[% HTML.escape(c.uri_for('/api/push', { jobsets = project.name _ ':' _ jobset.name, force = "1" })) %]",
type: 'POST',
success: function(data) {
bootbox.alert("The jobset has been scheduled for evaluation.");
}