When we use the resource attribute to define a mapping like "/api/user"(resource: 'user') the following mappings are created by Grails:
"/api/user/create"(controller: 'user', action: 'create', method: 'GET') "/api/user/edit"(controller: 'user', action: 'edit', method: 'GET') "/api/user(.(*))?"(controller: 'user', action: 'delete', method: 'DELETE') "/api/user(.(*))?"(controller: 'user', action: 'update', method: 'PUT') "/api/user(.(*))?"(controller: 'user', action: 'save', method: 'POST') Well, what I want to do it to change these defaults so that I can translate the actions to my native language. So when I create a resource, I want those actions to be: "criar, editar, deletar, atualizar, salvar".
Is that possible? How can I accomplish that?
Thanks in advance.