Skip to content

Commit

Permalink
update routes to POST
Browse files Browse the repository at this point in the history
  • Loading branch information
SawyerCzupka committed Feb 22, 2025
1 parent fa864a0 commit 299dc8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ml-api/src/ml_api/api/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async def healthcheck_sleep(sleep_time: int):
return {"status": "ok"}


@router.get("/generate_rag_response")
@router.post("/generate_rag_response")
async def generate_rag_response_request(request: GEFRagRequest) -> GEFRagResponse:
"""Generates a RAG response for a single question in a specific GEF project."""

Expand Down Expand Up @@ -50,7 +50,7 @@ def ingest_projects_background(project_ids: list[str], service: IngestionService
service.ingest_directory(project_dir)


@router.get("/ingestion/projects")
@router.post("/ingestion/projects")
async def ingest_data(request: IngestionRequest, background_tasks: BackgroundTasks):
"""Ingests data into the system."""

Expand Down

0 comments on commit 299dc8b

Please sign in to comment.