From e95c6ec3a6a6ce0cbd68a139db9feb50cba7d0ef Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Fri, 20 Jan 2023 17:58:56 +0200 Subject: [PATCH] chore: add docs to `InstalledExtensionMiddleware` class --- lnbits/extension_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lnbits/extension_manager.py b/lnbits/extension_manager.py index 6b0a1bc18..0cceaa1be 100644 --- a/lnbits/extension_manager.py +++ b/lnbits/extension_manager.py @@ -402,6 +402,10 @@ class InstallableExtension(BaseModel): class InstalledExtensionMiddleware: + # This middleware class intercepts calls made to the extensions API and: + # - it blocks the calls if the extension has been disabled or uninstalled. + # - it redirects the calls to the latest version of the extension if the extension has been upgraded. + # - otherwise it has no effect def __init__(self, app: ASGIApp) -> None: self.app = app