Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PTFE-681] Fastapi router routes #312

Merged
merged 9 commits into from
Aug 4, 2023
3 changes: 3 additions & 0 deletions runner_manager/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@

from runner_manager.dependencies import get_queue
from runner_manager.jobs.startup import startup
from runner_manager.routers import webhook

log = logging.getLogger(__name__)

app = FastAPI()

app.include_router(webhook.router)


@app.on_event("startup")
def startup_event():
Expand Down
Empty file.
8 changes: 8 additions & 0 deletions runner_manager/routers/webhook.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from fastapi import APIRouter, Response

router = APIRouter(prefix="/webhook")


@router.get("/")
def get():
return Response(content="Success", status_code=200)
Loading