def user(id): user = Account.one_from_pk(id) return jsonify({"user": user.username})
def homepage(): authHeader = request.headers['Authorization'] token = authHeader.split(" ")[1] decoded_token = decodeAuthToken(token) user = Account.one_from_pk(decoded_token['user']) return jsonify({'status': 'success', 'user': user.username})