add api for getting goal and results by social action and goal

This commit is contained in:
2021-06-22 16:08:53 +02:00
parent 34d6452286
commit b53f6af8d8
14 changed files with 700 additions and 12 deletions

View File

@@ -3,6 +3,7 @@
namespace Chill\PersonBundle\Controller;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWork;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
@@ -27,7 +28,7 @@ class AccompanyingCourseWorkController extends AbstractController
* methods={"GET", "POST"}
* )
*/
public function createWork(AccompanyingPeriod $period)
public function createWork(AccompanyingPeriod $period): Response
{
// TODO ACL
@@ -49,4 +50,10 @@ class AccompanyingCourseWorkController extends AbstractController
'json' => $json
]);
}
public function editWork(AccompanyingPeriodWork $work): Response
{
// TODO ACL
}
}