Search code examples
grailsurl-mapping

another grails urlmapping question


ok, so i asked, and got an answer on how to make a single controller instance case-insensitive vis-a-vis urls. I can do

"/mycontroller/$action?/$id?"(controller: "myController")

so when an app outside tries to reference link in our app, their lowercase urls ( :( sigh ) will work.

I need to extend this to include actions as well. So the question is, following the above approach, do i need put a url mapping in for each action?

/mycontroller/methodone/(controller: "myController", action: methodOne)
/mycontroller/methodtwo/(controller: "myController", action: methodTwo)

Something like the above?


Solution

  • This is similar to the question below which I have answered and included source code

    How to make my URL mapping case insensitive?