diff --git a/src/knoc_plugin_template/api.py b/src/knoc_plugin_template/api.py index 4303319..14a1678 100644 --- a/src/knoc_plugin_template/api.py +++ b/src/knoc_plugin_template/api.py @@ -16,8 +16,7 @@ from sqlmodel.ext.asyncio.session import AsyncSession from hatchet_sdk.runnables.types import EmptyModel from knoc.settings import settings -from knoc.workflows import all_wfs -from knoc.workflows.utils import ImportReport +from knoc.utils import ImportReport from knoc.db import engine, aio_sql_to_df, get_session from knoc_plugin_template.workflows import SimpleOutput, do_nothing_wf @@ -29,8 +28,8 @@ app = FastAPI() @app.get("/") -async def template_api_home() -> HTMLResponse: - return HTMLResponse("
Plugin template home
") +async def template_api_home(): + return {} @app.get("/run_wf")