pull deployment repo

This commit is contained in:
mbecker20
2022-12-21 05:10:17 +00:00
parent 3b0f919baa
commit 3a0fa36d19
9 changed files with 178 additions and 21 deletions
+14
View File
@@ -189,6 +189,20 @@ pub fn router() -> Router {
},
),
)
.route(
"/:id/pull",
post(
|Extension(state): StateExtension,
Extension(user): RequestUserExtension,
Path(deployment_id): Path<DeploymentId>| async move {
let update = state
.pull_deployment_repo(&deployment_id.id, &user)
.await
.map_err(handle_anyhow_error)?;
response!(Json(update))
},
),
)
.route(
"/:id/action_state",
get(