api: Require POST for /api/push

(cherry picked from commit 916531dc9c)
This commit is contained in:
Janne Heß
2024-08-27 21:53:13 +02:00
committed by Martin Weinelt
parent b8d03adaf4
commit 88d9898588
5 changed files with 7 additions and 4 deletions
+1
View File
@@ -204,6 +204,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.");
}