Merge pull request #607 from nlewo/json-search

Add JSON search API endpoint
This commit is contained in:
Graham Christensen
2019-03-18 15:08:32 -05:00
committed by GitHub
2 changed files with 15 additions and 3 deletions

View File

@ -428,6 +428,11 @@ sub search :Local Args(0) {
$c->stash->{buildsdrv} = [ $c->model('DB::Builds')->search(
{ "drvpath" => trim($query) },
{ order_by => ["id desc"] } ) ];
$c->stash->{resource} = { projects => $c->stash->{projects},
jobsets => $c->stash->{jobsets},
builds => $c->stash->{builds},
buildsdrv => $c->stash->{buildsdrv} };
}
sub serveLogFile {