10 lines
194 B
Python
10 lines
194 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from fastapi import Request
|
||
|
|
|
||
|
|
from web_runtime import WebAppRuntime
|
||
|
|
|
||
|
|
|
||
|
|
def get_runtime(request: Request) -> WebAppRuntime:
|
||
|
|
return request.app.state.runtime
|