removed api_base_url from settings

This commit is contained in:
2026-04-26 01:52:44 +02:00
parent 2aa9fc0cbc
commit c96b953ee7
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ from api import router as api_router
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env")
api_base_url: str = "http://localhost:8000"
production: bool = False
staging: bool = False
settings = Settings()
@@ -41,7 +41,7 @@ app.add_middleware(
app.include_router(api_router)
templates = Jinja2Templates(directory="templates")
templates.env.globals["api_base_url"] = settings.api_base_url
templates.env.globals["staging"] = settings.staging
@app.get("/", response_class=HTMLResponse, include_in_schema=False)
+1 -1
View File
@@ -76,7 +76,7 @@
</div>
<script>
const API_URL = "{{ api_base_url }}/fhir/egfr/ckd-epi-2021";
const API_URL = "/fhir/egfr/ckd-epi-2021";
function get(fhirResponse, name) {
return fhirResponse.parameter.find(p => p.name === name);