removed api_base_url from settings
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user