Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 265
hvgotcodes Avatar asked May 20 '26 13:05

hvgotcodes


1 Answers

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

How to make my URL mapping case insensitive?

like image 180
Aaron Saunders Avatar answered May 23 '26 03:05

Aaron Saunders



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!