mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-13 15:14:50 -06:00
fix: adk web not working on some env for windows, fixes https://github.com/google/adk-web/issues/34
PiperOrigin-RevId: 765271751
This commit is contained in:
parent
65063023a5
commit
daac8cedfe
@ -858,6 +858,11 @@ def get_fast_api_app(
|
||||
return runner
|
||||
|
||||
if web:
|
||||
import mimetypes
|
||||
|
||||
mimetypes.add_type("application/javascript", ".js", True)
|
||||
mimetypes.add_type("text/javascript", ".js", True)
|
||||
|
||||
BASE_DIR = Path(__file__).parent.resolve()
|
||||
ANGULAR_DIST_PATH = BASE_DIR / "browser"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user