12 lines
328 B
Rust
12 lines
328 B
Rust
use axum::{extract::State, http::StatusCode};
|
|
|
|
use crate::{http::error::AppError, node::stack::compose, AppState};
|
|
|
|
pub(super) async fn check_stack_file(
|
|
State(state): State<AppState>,
|
|
body: String,
|
|
) -> Result<StatusCode, AppError> {
|
|
compose::check(&state.arion_bin, &body).await?;
|
|
Ok(StatusCode::NO_CONTENT)
|
|
}
|