Ignore:
Timestamp:
Nov 10, 2009, 1:26:53 PM (14 years ago)
Author:
gav
Message:

Add support for inventory item Pictures and Images.
Add new PersonService, refactor CreateDataService and TaskService to suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/UrlMappings.groovy

    r75 r182  
    11class UrlMappings {
    22    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    }
    1120}
Note: See TracChangeset for help on using the changeset viewer.