Changeset 182 for trunk/grails-app/conf/UrlMappings.groovy
- Timestamp:
- Nov 10, 2009, 1:26:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/UrlMappings.groovy
r75 r182 1 1 class UrlMappings { 2 2 static mappings = { 3 "/$controller/$action?/$id?"{ 4 constraints { 5 // apply constraints here 6 } 7 } 8 "/"(view:"/index") 9 "500"(view:'/error') 10 } 3 "/$controller/$action?/$id?"{ 4 constraints { 5 // apply constraints here 6 } 7 } 8 9 "/image/$id/$size?/$filename?" { 10 constraints { 11 size(matches: /\d+/) 12 } 13 controller = 'pictureDetailed' 14 action = 'view' 15 } 16 17 "/"(view:"/index") 18 "500"(view:'/error') 19 } 11 20 }
Note: See TracChangeset
for help on using the changeset viewer.