Commit 6851ef86 authored by Mat's avatar Mat

corrections

parent 9f2abfd6
......@@ -3,7 +3,6 @@
namespace APIBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
class OwnerController extends MasterAPIController
{
......@@ -15,6 +14,7 @@ class OwnerController extends MasterAPIController
{
$owners = $this->getDoctrine()->getManager()
->getRepository('TechnoBundle:Owner')->findAllForAPIRead();
return $this->api($owners);
}
......
api_homepage:
api_owner_read:
path: /owners
defaults:
_controller: APIBundle:Owner:read
......
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