bananas/admin/api/router.py
def register(view):  # Type[BananasAPI]
    """
    Register the API view class in the bananas router.

    :param BananasAPI view:
    """
    meta = view.get_admin_meta()
    prefix = meta.basename.replace(".", "/")
    router.register(prefix, view, meta.basename)
def register(view):  # Type[BananasAPI]
    meta = view.get_admin_meta()
    prefix = meta.basename.replace(".", "/")
    router.register(prefix, view, meta.basename)
def register ( view ) : # Type[BananasAPI] meta = view . get_admin_meta ( ) prefix = meta . basename . replace ( "." , "/" ) router . register ( prefix , view , meta . basename )
Register the API view class in the bananas router.

    :param BananasAPI view:
Register the API view class in the bananas router .