mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Added draft for LawController
This commit is contained in:
36
application/src/Controller/LawController.php
Normal file
36
application/src/Controller/LawController.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
namespace App\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
class LawController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* @Route("/law/{id}.{_format}", defaults={"_format"="html"})
|
||||
*/
|
||||
public function show():Response{
|
||||
//Implement
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("/law/{id}/right.{_format}", defaults={"_format"="html"})
|
||||
*/
|
||||
public function right(int $id):RedirectResponse{
|
||||
//Implement
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("/law/{id}/node.{_format}", defaults={"_format"="html"})
|
||||
*/
|
||||
public function node(int $id):RedirectResponse{
|
||||
//Implement
|
||||
}
|
||||
}
|
@@ -37,7 +37,6 @@ class NodeController extends FOSRestController
|
||||
if (!$node) {
|
||||
throw $this->createNotFoundException('No node found for id '.$id);
|
||||
}
|
||||
|
||||
return $node;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user