extension.py
1 """ 2 Extension module 3 """ 4 5 6 class Extension: 7 """ 8 Defines an API extension. API extensions can expose custom pipelines or other custom logic. 9 """ 10 11 def __call__(self, app): 12 """ 13 Hook to register custom routing logic and/or modify the FastAPI instance. 14 15 Args: 16 app: FastAPI application instance 17 """ 18 19 return