Skip to content

Commit

Permalink
[#272] More generic routes for CRUD
Browse files Browse the repository at this point in the history
  • Loading branch information
erwan committed Oct 12, 2010
1 parent 75d72df commit 36008c7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions modules/crud/conf/routes
Expand Up @@ -2,14 +2,14 @@
# ~~~~~~~~~~~

#{crud.types}
GET /? ${type.controllerClass.name.substring(12).replace('$','')}.index
GET /${type.controllerName} ${type.controllerClass.name.substring(12).replace('$','')}.list
GET /${type.controllerName}/new ${type.controllerClass.name.substring(12).replace('$','')}.blank
GET /${type.controllerName}/{<\d+>id} ${type.controllerClass.name.substring(12).replace('$','')}.show
GET /${type.controllerName}/{<\d+>id}/{field} ${type.controllerClass.name.substring(12).replace('$','')}.attachment
GET /${type.controllerName}/{<\d+>id}/edit ${type.controllerClass.name.substring(12).replace('$','')}.edit
POST /${type.controllerName} ${type.controllerClass.name.substring(12).replace('$','')}.create
POST /${type.controllerName}/{<\d+>id} ${type.controllerClass.name.substring(12).replace('$','')}.save
DELETE /${type.controllerName}/{<\d+>id} ${type.controllerClass.name.substring(12).replace('$','')}.delete
GET /? ${type.controllerClass.name.substring(12).replace('$','')}.index
GET /${type.controllerName} ${type.controllerClass.name.substring(12).replace('$','')}.list
GET /${type.controllerName}/new ${type.controllerClass.name.substring(12).replace('$','')}.blank
GET /${type.controllerName}/{id} ${type.controllerClass.name.substring(12).replace('$','')}.show
GET /${type.controllerName}/{id}/{field} ${type.controllerClass.name.substring(12).replace('$','')}.attachment
GET /${type.controllerName}/{id}/edit ${type.controllerClass.name.substring(12).replace('$','')}.edit
POST /${type.controllerName} ${type.controllerClass.name.substring(12).replace('$','')}.create
POST /${type.controllerName}/{id} ${type.controllerClass.name.substring(12).replace('$','')}.save
DELETE /${type.controllerName}/{id} ${type.controllerClass.name.substring(12).replace('$','')}.delete
#{/crud.types}
GET / CRUD.index
GET / CRUD.index

0 comments on commit 36008c7

Please sign in to comment.