Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class UrlMappings {
  2.  
  3. static mappings = {
  4. "/$namespace/$controller/$action?/$id?"{
  5. constraints {
  6. action matches: "[a-z][0-9a-z-]*"
  7. id matches: "[0-9a-f]{24}"
  8. }
  9. }
  10.  
  11. "/$namespace/$controller/$id?"{
  12. constraints {
  13. id matches: "[0-9a-f]{24}"
  14. }
  15. }
  16.  
  17. "/"(view:"/index")
  18. "500"(view:'/error')
  19. "404"(view:'/notFound')
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement