mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-29 05:12:39 +02:00
chore: add docs to InstalledExtensionMiddleware
class
This commit is contained in:
@@ -402,6 +402,10 @@ class InstallableExtension(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class InstalledExtensionMiddleware:
|
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:
|
def __init__(self, app: ASGIApp) -> None:
|
||||||
self.app = app
|
self.app = app
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user