saleor-apps-rs/simple-payment-gateway/src/routes/manifest.rs

9 lines
244 B
Rust
Raw Normal View History

2024-03-11 13:11:47 +00:00
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))
}