From 78733d81903e2f322a49dc12ebbe9c300be572d7 Mon Sep 17 00:00:00 2001 From: Jon Moss Date: Mon, 28 Jan 2019 17:23:01 -0500 Subject: [PATCH] app: remove unused /api/user route Removed from docs in f2499315ba3a815d9191710337aa97a360ede87d. --- app.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app.py b/app.py index a1266fe..592f8e2 100755 --- a/app.py +++ b/app.py @@ -175,17 +175,6 @@ def session_action(methods=['GET']): # vote = dict(utils.connect('vote').find_one({"_id": _id})) # return json.dumps(vote) -@app.route('/api/user/') -def api_user(methods=['GET']): - from flask import request - _id = request.args.get('_id', None) - if not _id: - return json.dumps(list(utils.connect('user').find({}))) - user = dict(utils.connect('user').find_one({"_id": _id})) - for x in ['login_hash', 'updated', 'created', 'password', 'fingerprint']: - del user[x] - return json.dumps(user) - # @app.route('/api/session/') # def api_session(methods=['GET']): # from flask import request