Set the routes contraints for the api