Set some route constraints for the API