Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UrlMappings {
- static mappings = {
- "/$namespace/$controller/$action?/$id?"{
- constraints {
- action matches: "[a-z][0-9a-z-]*"
- id matches: "[0-9a-f]{24}"
- }
- }
- "/$namespace/$controller/$id?"{
- constraints {
- id matches: "[0-9a-f]{24}"
- }
- }
- "/"(view:"/index")
- "500"(view:'/error')
- "404"(view:'/notFound')
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement