saleor-apps-rs/simple-payment-gateway/src/routes/manifest.rs
2024-03-11 14:11:47 +01:00

8 lines
244 B
Rust

use axum::{extract::State, Json};
use saleor_app_sdk::{manifest::AppManifest};
use crate::app::{AppError, AppState};
pub async fn manifest(State(state): State<AppState>) -> Result<Json<AppManifest>, AppError> {
Ok(Json(state.manifest))
}