Relocated Api Controllers

This commit is contained in:
2022-02-14 20:28:36 +01:00
parent 90895be05f
commit d7645c5837
3 changed files with 6 additions and 7 deletions

View File

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