8 lines
244 B
Rust
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))
|
|
}
|