Improve the way we map urls to actions in the rest controller