Commit 37c0a30b authored by Mat's avatar Mat

renomme les contollers APIContoller pour éviter les confusions

parent 1ce376f8
......@@ -6,7 +6,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use APIBundle\Form\Image\ImageAPIType;
class ImageController extends MasterAPIController
class ImageAPIController extends MasterAPIController
{
/**
......
......@@ -8,7 +8,7 @@ use APIBundle\Form\Owner\OwnerAPIType;
use TechnoBundle\Entity\Owner;
class OwnerController extends MasterAPIController
class OwnerAPIController extends MasterAPIController
{
/**
......
api_owner_read:
path: /owners
defaults:
_controller: APIBundle:Owner:read
_controller: APIBundle:OwnerAPI:read
methods: [ GET ]
options:
expose: true # façon crade d'esposer la route
......@@ -11,19 +11,19 @@ api_owner_read_one:
requirements:
id: \d+
defaults:
_controller: APIBundle:Owner:readOne
_controller: APIBundle:OwnerAPI:readOne
methods: [ GET ]
api_owner_create:
path: /owner/add
defaults:
_controller: APIBundle:Owner:create
_controller: APIBundle:OwnerAPI:create
methods: [ POST ]
api_owner_update:
path: /owner/{id}
defaults:
_controller: APIBundle:Owner:update
_controller: APIBundle:OwnerAPI:update
requirements:
id: \d+
methods: [ POST ]
......@@ -31,7 +31,7 @@ api_owner_update:
api_owner_delete_one:
path: /owner/{id}
defaults:
_controller: APIBundle:Owner:deleteOne
_controller: APIBundle:OwnerAPI:deleteOne
requirements:
id: \d+
methods: [ DELETE ]
......@@ -42,7 +42,7 @@ api_image_update:
requirements:
id: \d+
defaults:
_controller: APIBundle:Image:update
_controller: APIBundle:ImageAPI:update
methods: [ POST ]
##
......
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