I'm using Grails v3.2.9
In official documentation I found the following for mapping to http methods:
static mappings = {
"/product/$id"(controller:"product", action: "update", method: "PUT")
}
But this is not enough. What I need is to have one mapping which maps to different actions(in the same controller) based on HTTP method.
Any idea ?