Config Variables - Model & Easyadmin.
This commit is contained in:
1 parent
84d9c81afd
commit
7a56158563
10 files changed
+260
-6
No files matched your search
@@ -18,7 +18,7 @@ class RoomCategoryController extends AbstractController
|
||||
{
|
||||
|
||||
#[Route('/room/category', name: 'app_room_AllCategories')]
|
||||
public function getAll(RoomCategoryRepository $catRepo, SerializerInterface $serializer): Response
|
||||
public function getAll(RoomCategoryRepository $catRepo): Response
|
||||
{
|
||||
$catList = $catRepo->findAll();
|
||||
|
||||
@@ -26,7 +26,7 @@ class RoomCategoryController extends AbstractController
|
||||
}
|
||||
|
||||
#[Route('/room/category/{id}', name: 'app_room_category')]
|
||||
public function getById(RoomCategory $category, SerializerInterface $serializer): Response
|
||||
public function getById(RoomCategory $category): Response
|
||||
{
|
||||
return $this->json($category);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user