Initial commit for insurance listener only #730
This commit is contained in:
parent
b81b10840b
commit
abc4e31d96
2 changed files with 13 additions and 1 deletions
6
config/routes/insurance.yaml
Normal file
6
config/routes/insurance.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# insurance
|
||||
|
||||
insurance_listener:
|
||||
path: /api/insurance/listen
|
||||
controller: App\Controller\InsuranceController::listen
|
||||
methods: [POST]
|
||||
|
|
@ -12,6 +12,12 @@ class InsuranceController extends Controller
|
|||
{
|
||||
public function listen(Request $req, EntityManagerInterface $em)
|
||||
{
|
||||
|
||||
$payload = $req->request->all();
|
||||
error_log(print_r($payload, true));
|
||||
|
||||
return $this->json([
|
||||
'success' => true,
|
||||
'payload' => $payload,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue