<filename>app/v0/users/__init__.py
from flask import Blueprint

users = Blueprint("users", __name__)

from app.v0.users.views import UserView

user_view = UserView.as_view('user_view')

users.add_url_rule("/v0/users/<string:public_id>", view_func=user_view, methods=["GET"])
users.add_url_rule("/v0/users", view_func=user_view)
<filename>app/v0/users/__init__.py
from flask import Blueprint

users = Blueprint("users", __name__)

from app.v0.users.views import UserView

user_view = UserView.as_view('user_view')

users.add_url_rule("/v0/users/<string:public_id>", view_func=user_view, methods=["GET"])
users.add_url_rule("/v0/users", view_func=user_view)