#####################################################################
# THIS FILE IS AUTOMATICALLY GENERATED BY UNSTRUCTURED API TOOLS.
# DO NOT MODIFY DIRECTLY
#####################################################################


from fastapi import FastAPI, Request, status

{% for module in module_names -%}
from .{{ module }} import router as {{module}}_router
{% endfor %}

app = FastAPI(
  title="{{ title }}",
  description="""{{ description }}""",
  version="{{ version or '1.0.0' }}",
  docs_url="{{ '/' ~ version_name ~ '/docs' if version_name else '/docs' }}"
)

{% for module in module_names -%}
app.include_router({{ module }}_router)
{% endfor %}

@app.get("/healthcheck", status_code=status.HTTP_200_OK)
def healthcheck(request: Request):
    return {"healthcheck": "HEALTHCHECK STATUS: EVERYTHING OK!"}
