Added constraints to route parameters.