from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles

from app.routes import doc_generator

app = FastAPI(title="Utility App")

app.mount("/static", StaticFiles(directory="static"), name="static")

app.include_router(doc_generator.router, prefix="/api/doc-generator", tags=["doc-generator"])


@app.get("/")
def index():
    from fastapi.responses import FileResponse
    return FileResponse("static/index.html")
