12 lines
196 B
Groovy
12 lines
196 B
Groovy
class UrlMappings {
|
|
static mappings = {
|
|
"/$controller/$action?/$id?"{
|
|
constraints {
|
|
// apply constraints here
|
|
}
|
|
}
|
|
"/"(view:"/index")
|
|
"500"(view:'/error')
|
|
}
|
|
}
|