mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-10 17:26:15 +01:00
chore: add docs to InstalledExtensionMiddleware
class
This commit is contained in:
parent
b069fe17d8
commit
e95c6ec3a6
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue