Updated the reports page to use the new API endpoints

This commit is contained in:
2025-06-25 17:24:31 -04:00
parent 1b4fd8dec9
commit 6e67d58a8b
5 changed files with 13 additions and 49 deletions

View File

@ -22,7 +22,8 @@ class ApiController extends Controller {
}
public function getBenchmarkTests(Request $request, Response $response, array $args): Response {
$benchmark = Benchmark::where('id', $args['benchmark_id'])->first();
$urlParams = $request->getQueryParams();
$benchmark = Benchmark::where('id', $urlParams['benchmark_id'])->first();
$payload = json_encode($benchmark->tests);