mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 12:18:54 +02:00
Added tests to test the KICad API endpoints
This commit is contained in:
parent
d976865e7a
commit
9994dbd9db
3 changed files with 323 additions and 2 deletions
|
@ -33,7 +33,7 @@ use Symfony\Component\HttpFoundation\Response;
|
|||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
#[Route('/kicad-api/v1')]
|
||||
class KiCADAPIController extends AbstractController
|
||||
class KiCadApiController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private readonly KiCADHelper $kiCADHelper,
|
||||
|
@ -54,7 +54,7 @@ class KiCADAPIController extends AbstractController
|
|||
}
|
||||
|
||||
#[Route('/categories.json', name: 'kicad_api_categories')]
|
||||
public function categories(NodesListBuilder $nodesListBuilder): Response
|
||||
public function categories(): Response
|
||||
{
|
||||
$this->denyAccessUnlessGranted('@categories.read');
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue