Added endpoint to create metadata
This commit is contained in:
@@ -66,6 +66,13 @@ pub mod response {
|
|||||||
pub data: Vec<crate::callers::metadata::metadata_queue::MetadataQueue>,
|
pub data: Vec<crate::callers::metadata::metadata_queue::MetadataQueue>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub mod create_metadata {
|
||||||
|
#[derive(Default, serde::Deserialize, serde::Serialize)]
|
||||||
|
pub struct Response {
|
||||||
|
pub message: String,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub mod metadata_queue {
|
pub mod metadata_queue {
|
||||||
@@ -271,4 +278,12 @@ pub mod endpoint {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Implement
|
||||||
|
pub async fn create_metadata(
|
||||||
|
) -> (axum::http::StatusCode, axum::Json<super::response::create_metadata::Response>) {
|
||||||
|
let mut response = super::response::create_metadata::Response::default();
|
||||||
|
|
||||||
|
(axum::http::StatusCode::OK, axum::Json(response))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user