add api routes constraints