Commit e474d5a5 authored by Mat's avatar Mat
Browse files

readInfos group, un json plus léger + chmod

parent 2a14cfd0
File mode changed from 100644 to 100755
...@@ -60,7 +60,7 @@ class InfoAPIController extends MasterAPIController ...@@ -60,7 +60,7 @@ class InfoAPIController extends MasterAPIController
if ($info === null) { if ($info === null) {
return $this->api('Not found', Response::HTTP_NOT_FOUND); return $this->api('Not found', Response::HTTP_NOT_FOUND);
} }
return $this->api($info); return $this->api($info, 200, array('readInfos'));
} }
...@@ -85,7 +85,7 @@ class InfoAPIController extends MasterAPIController ...@@ -85,7 +85,7 @@ class InfoAPIController extends MasterAPIController
if ($form->isSubmitted() && $form->isValid()) if ($form->isSubmitted() && $form->isValid())
{ {
$em->flush(); $em->flush();
return $this->api($info); return $this->api($info, 200, array('readInfos'));
} }
return $this->api($form, Response::HTTP_BAD_REQUEST); return $this->api($form, Response::HTTP_BAD_REQUEST);
} }
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment