Add a constraint to the urlMapping
plus make sure the default mapping is available.
"/$controller/$action?/$id?"{
constraints {
// apply constraints here
}
}
"/user/$id" (resource: "user"){
constraints {
id validator: {
!(it in ['create', 'otherAction'])
}
}
}
Co-incidentally, a similar question was answered here.