# Path: mysql_autoxtrabackup/api/controller/controller.py
# async def home() -> RedirectResponse:
# async def backup() -> JSONResponse:
# async def prepare() -> JSONResponse:
# async def backups() -> JSONResponse:
# async def delete() -> JSONResponse:
# 
# Path: mysql_autoxtrabackup/utils/version.py
# VERSION = "2.0.2"


from typing import Any, Dict, Optional
from fastapi import FastAPI
from fastapi.openapi.utils import get_openapi
from mysql_autoxtrabackup.api.controller.controller import router
from mysql_autoxtrabackup.utils.version import VERSION
import uvicorn  # type: ignore



app = FastAPI()


@app.on_event("startup")
async def startup() -> None:
    """startup."""
    print("app started")


@app.on_event("shutdown")
async def shutdown() -> None:
    """shutdown."""
    print("SHUTDOWN")


def modify_openapi() -> Dict[str, Any]:
    """modify_openapi."""
    if app.openapi_schema:
        return app.openapi_schema
    openapi_schema = get_openapi(
        title="MySQL-AutoXtrabackup",

# Path: mysql_autoxtrabackup/api/controller/controller.py
# async def home() -> RedirectResponse:
# async def backup() -> JSONResponse:
# async def prepare() -> JSONResponse:
# async def backups() -> JSONResponse:
# async def delete() -> JSONResponse:
# 
# Path: mysql_autoxtrabackup/utils/version.py
# VERSION = "2.0.2"


# Path: mysql_autoxtrabackup/api/main.py
from typing import Any, Dict, Optional
from fastapi import FastAPI
from fastapi.openapi.utils import get_openapi
from mysql_autoxtrabackup.api.controller.controller import router
from mysql_autoxtrabackup.utils.version import VERSION
import uvicorn  # type: ignore




app = FastAPI()


@app.on_event("startup")
async def startup() -> None:
    """startup."""
    print("app started")


@app.on_event("shutdown")
async def shutdown() -> None:
    """shutdown."""
    print("SHUTDOWN")


def modify_openapi() -> Dict[str, Any]:
    """modify_openapi."""
    if app.openapi_schema:
        return app.openapi_schema
    openapi_schema = get_openapi(
        title="MySQL-AutoXtrabackup",

        version=f"{VERSION}",