use axum::{
http::{header, StatusCode},
response::IntoResponse,
Json,
};
use pubky_common::constants::features::PATH_ADDRESSED_STORAGE;
use serde::Serialize;
const FEATURES: &[&str] = &[PATH_ADDRESSED_STORAGE];
#[derive(Serialize)]
struct InfoResponse {
features: &'static [&'static str],
}
pub async fn get() -> impl IntoResponse {
(
StatusCode::OK,
[(header::CACHE_CONTROL, "no-store")],
Json(InfoResponse { features: FEATURES }),
)
}