We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe044e9 commit c39e665Copy full SHA for c39e665
sftkit/src/sftkit/http/_server.py
@@ -107,9 +107,10 @@ async def run(self, context: ContextT):
107
# register service instances so they are available in api routes
108
# kwargs set here can then be fetched with `name = Depends($name)`
109
# in the router kwargs.
110
+
111
self.api.add_middleware(
- ContextMiddleware,
112
- context=context,
+ ContextMiddleware, # type: ignore
113
+ context=context, # type: ignore
114
)
115
webserver = uvicorn.Server(self.uvicorn_config)
116
await webserver.serve()
0 commit comments