Switched getting files with axios request to the api platform.
This commit is contained in:
@@ -111,13 +111,6 @@ class BookController extends AbstractController
|
||||
]);
|
||||
}
|
||||
|
||||
#[Route('/{id}/files', name: 'app_book_file', methods: ['GET'])]
|
||||
public function files(Book $book): JsonResponse
|
||||
{
|
||||
return $this->json($book->getFiles(), context: [AbstractNormalizer::IGNORED_ATTRIBUTES => ['book']]);
|
||||
}
|
||||
|
||||
|
||||
#[Route('/{id}/edit', name: 'app_book_edit', methods: ['GET', 'POST'])]
|
||||
public function edit(
|
||||
Request $request,
|
||||
|
||||
Reference in New Issue
Block a user