sync update from LAN repo (source master @ ca48c4ec)
This commit is contained in:
1 parent
8bc8b0e082
commit
ea9dcff9c0
873 files changed
+107866
-14011
No files matched your search
@@ -10,8 +10,7 @@ from pathlib import Path
|
||||
from fastapi import APIRouter, HTTPException
|
||||
from fastapi.responses import FileResponse, Response
|
||||
|
||||
from deerflow.config import get_app_config
|
||||
from deerflow.config.html_runtime_config import DEFAULT_HTML_MAP_TILE_URL
|
||||
from deerflow.html_runtime.addresses import html_map_tile_url, html_runtime_base_url
|
||||
|
||||
router = APIRouter(prefix="/api/public/html-runtime", tags=["html-runtime"])
|
||||
|
||||
@@ -60,9 +59,8 @@ async def get_deerflow_html_runtime() -> Response:
|
||||
path = _RUNTIME_DIR / "deerflow-runtime.js"
|
||||
if not path.is_file():
|
||||
raise HTTPException(status_code=503, detail="HTML runtime is not installed")
|
||||
config = get_app_config().html_runtime
|
||||
base_url = config.base_url.rstrip("/")
|
||||
tile_url = str(getattr(config, "map_tile_url", "") or "").strip() or DEFAULT_HTML_MAP_TILE_URL
|
||||
base_url = html_runtime_base_url()
|
||||
tile_url = html_map_tile_url()
|
||||
runtime_config = {
|
||||
"geoMaps": {
|
||||
"china-provinces": f"{base_url}/maps/china-provinces.geojson",
|
||||
|
||||
Reference in new issue
Block a user