browser-go-api/api/users/user_endpoint.py
2019-10-05 23:17:13 -07:00

7 lines
202 B
Python

from models.User import User, user_schema, users_schema
class UserEndpoint(object):
def users():
user = User.query.all()
response = users_schema.dumps(user)
return response