Project support has been updated

This commit is contained in:
2022-02-13 12:33:34 +01:00
parent db09f170a0
commit 098bab32e9
5 changed files with 20 additions and 14 deletions

View File

@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace App\Http\Controllers;
use App\Repository\Interfaces\ProjectRepository;
@@ -14,12 +16,12 @@ class ProjectController extends Controller
public function index()
{
return $this->projectRepository->all();
}
public function show()
public function show(int $project)
{
return $this->projectRepository->get($project);
}
}