plugin-rest/spring-security-rest-testapp-profile/skeleton/grails-app/controllers/UrlMappings.groovy (11 lines of code) (raw):
class UrlMappings {
static mappings = {
"/$controller/$action?/$id?(.$format)?"{
constraints {
// apply constraints here
}
}
"/"(view:"/index")
"500"(view:'/error')
"404"(view:'/notFound')
}
}