<gh_stars>0
from app.models.users import User
from flask_restful import Resource


class UsersController(Resource):
    def get(self):
        users = map(lambda user: user.as_dict(), User.query.all())
        return {"users": users}, 200

from app.models.users import User
from flask_restful import Resource


class UsersController(Resource):
    def get(self):
        users = map(lambda user: user.as_dict(), User.query.all())
        return {"users": users}, 200