def post(self): # args = register_parsers['POST'].parse_args() # print(args) args = self.get_args('post') username = args['username'] password = args['password'] user = User(username) user.set_password(password) user.add() return {'status': 200, 'msg': 'ok'}