MCPcopy Create free account
hub / github.com/MoonKraken/youtube / get_task

Function get_task

FullStackRust/backend/src/api/task.rs:62–74  ·  view source on GitHub ↗
(
    ddb_repo: Data<DDBRepository>, 
    task_identifier: Path<TaskIdentifier>
)

Source from the content-addressed store, hash-verified

60
61#[get("/task/{task_global_id}")]
62pub async fn get_task(
63 ddb_repo: Data<DDBRepository>,
64 task_identifier: Path<TaskIdentifier>
65) -> Result<Json<Task>, TaskError> {
66 let tsk = ddb_repo.get_task(
67 task_identifier.into_inner().task_global_id
68 ).await;
69
70 match tsk {
71 Some(tsk) => Ok(Json(tsk)),
72 None => Err(TaskError::TaskNotFound)
73 }
74}
75
76#[post("/task")]
77pub async fn submit_task(

Callers

nothing calls this directly

Calls 1

get_taskMethod · 0.45

Tested by

no test coverage detected