1@app.route('/users/', methods=['POST'])
2def get_users():
3 ids = request.form.getlist('user_ids', type=int)
4 users = []
5
6 for id in ids:
7 try:
8 user = whatever_user_method(id)
9 users.append(user)
10 except:
11 continue
12
13 returns users
14