Skip to content

Commit 3e04a00

Browse files
committed
fix(api): correct public modules URL format
Removed the hardcoded https:// prefix from the public modules URL to use the configured public_api_host directly.
1 parent 66c4b1d commit 3e04a00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/naas-abi/naas_abi/apps/nexus/apps/api/app/services/agents/adapters/primary/agents__primary_adapter__FastAPI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def _public_modules_url(path: str) -> str:
218218
from naas_abi import ABIModule
219219

220220
public_api_host = ABIModule.get_instance().configuration.global_config.public_api_host
221-
return f"https://{public_api_host}/modules/{path.lstrip('/')}"
221+
return f"{public_api_host}/modules/{path.lstrip('/')}"
222222

223223

224224
@router.get("/")

0 commit comments

Comments
 (0)