Added a details page for test results; added an API route for removing test results

This commit is contained in:
2025-08-01 17:21:03 -04:00
parent 078edf5ab0
commit 32632b2303
7 changed files with 80 additions and 0 deletions

View File

@ -109,4 +109,13 @@ class TestController extends Controller {
->withStatus(302);
}
public function getResults(Request $request, Response $response, array $args): Response {
$test = Test::where('id', $args['test_id'])->first();
$view = Twig::fromRequest($request);
return $view->render($response, 'test/results.twig', [
'test' => $test,
]);
}
}