browser-go-api/api/users/user_endpoint.py

8 lines
189 B
Python
Raw Normal View History

from models.User import User, user_schema
2019-10-04 22:00:47 +00:00
class UserEndpoint(object):
def users():
user = User.query.first()
response = user_schema.dumps(user)
2019-10-04 22:00:47 +00:00
return response