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

@ -239,6 +239,8 @@ sub triggerJobset {
sub push : Chained('api') PathPart('push') Args(0) {
my ($self, $c) = @_;
requirePost($c);
$c->{stash}->{json}->{jobsetsTriggered} = [];
my $force = exists $c->request->query_params->{force};