# Path: src/bananas/admin/api/versioning.py
# class BananasVersioning(NamespaceVersioning):
#     def get_versioned_viewname(self, viewname: str, request: Request) -> str:


from django.urls import include, re_path
from .versioning import __versions__


apipatterns = [
    re_path(
        rf"^{version.__version__}/",
        include(
            (f"{version.__name__}.urls", "bananas"),
            namespace=version.__version__,
        ),
    )

# Path: src/bananas/admin/api/versioning.py
# class BananasVersioning(NamespaceVersioning):
#     def get_versioned_viewname(self, viewname: str, request: Request) -> str:


# Path: src/bananas/admin/api/urls.py
from django.urls import include, re_path
from .versioning import __versions__



apipatterns = [
    re_path(
        rf"^{version.__version__}/",
        include(
            (f"{version.__name__}.urls", "bananas"),
            namespace=version.__version__,
        ),
    )

    for version in __versions__