def patch(self): if current_user.is_authenticated(): for key, val in parser.parse_args().items(): setattr(current_user, key, val) db.session.commit() return current_user else: return unauthorized()
def get(self): if current_user.is_authenticated(): return current_user else: return unauthorized()