chore: add docs to InstalledExtensionMiddleware class

This commit is contained in:
Vlad Stan 2023-01-20 17:58:56 +02:00
parent b069fe17d8
commit e95c6ec3a6

View file

@ -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