class UrlMappings {
static mappings = {
"/$controller/$action?/$id?(.$format)?"{
constraints {
// apply constraints here
}
}
"/login/$action?"(controller: "login")
"/logout/$action?"(controller: "logout")
"/"
{
controller = "Home"
}
"500"(view:'/error')
}
}
static mappings = {
"/$controller/$action?/$id?(.$format)?"{
constraints {
// apply constraints here
}
}
"/login/$action?"(controller: "login")
"/logout/$action?"(controller: "logout")
"/"
{
controller = "Home"
}
"500"(view:'/error')
}
}
the main difference is the orange shadowed line :)
0 comments:
Post a Comment