hi i want to obtain the grails url mappings from memory and change them dynamically. My doubt is where to get the url mappings from memory programatically ? is it available in the grailsapplication?
There's a UrlMappingsHolder
Spring bean under the grailsUrlMappingsHolder
name, so you can access the array of UrlMapping
with:
def grailsUrlMappingsHolder
...
UrlMapping[] urlMappings = grailsUrlMappingsHolder.urlMappings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With