Commit 2d9870a2 authored by Mat's avatar Mat
Browse files

complète mes fichiers de routing avec les méthodes et les requirements

parent fc237c0e
......@@ -2,38 +2,54 @@ asso_association_read:
path: /
defaults:
_controller: AssoBundle:Association:read
methods: [ GET ]
asso_association_create:
path: /add
defaults:
_controller: AssoBundle:Association:create
methods: [ POST ]
asso_association_update:
path: /edit/{id}
requirements:
id: \d+
defaults:
_controller: AssoBundle:Association:update
methods: [ GET, POST ]
asso_association_delete:
path: /delete/{id}
requirements:
id: \d+
defaults:
_controller: AssoBundle:Association:delete
methods: [ DELETE ]
asso_membre_read:
path: /membres
defaults:
_controller: AssoBundle:Membre:read
methods: [ GET ]
asso_membre_create:
path: /membre/add
defaults:
_controller: AssoBundle:Membre:create
methods: [ POST ]
asso_membre_update:
path: /membre/edit/{id}
requirements:
id: \d+
defaults:
_controller: AssoBundle:Membre:update
methods: [ GET, POST ]
asso_membre_delete:
path: /membre/delete/{id}
requirements:
id: \d+
defaults:
_controller: AssoBundle:Membre:delete
methods: [ DELETE ]
......@@ -2,17 +2,19 @@ techno_homepage:
path: /
defaults:
_controller: TechnoBundle:Default:index
methods: [ GET ]
techno_hello:
path: /hello/{name}
defaults:
_controller: TechnoBundle:Default:hello
methods: [ GET ]
techno_dump_image:
path: /gallery/dump
defaults:
_controller: TechnoBundle:Default:dumpImage
methods: [ GET ]
## CRUD image
......@@ -34,7 +36,7 @@ techno_gallery_create:
path: /gallery/add
defaults:
_controller: TechnoBundle:Image:create
methods: [ GET ]
methods: [ GET, POST ]
techno_gallery_update:
path: /gallery/edit/{id}
......@@ -59,18 +61,26 @@ techno_owner_read:
path: /owner
defaults:
_controller: TechnoBundle:Owner:read
methods: [ GET ]
techno_owner_create:
path: /owner/add
defaults:
_controller: TechnoBundle:Owner:create
methods: [ GET, POST ]
techno_owner_update:
path: /owner/add/{id}
defaults:
_controller: TechnoBundle:Owner:update
requirements:
id: \d+
methods: [ GET, POST ]
techno_owner_delete:
path: /owner/delete/{id}
defaults:
_controller: TechnoBundle:Owner:delete
requirements:
id: \d+
methods: [ DELETE ]
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