feat: BUD-05

This commit is contained in:
2024-10-15 10:47:36 +01:00
parent 9ccbace175
commit a580ceac44
20 changed files with 482 additions and 282 deletions

View File

@ -79,7 +79,7 @@ enum Nip96Response {
}
impl Nip96Response {
pub(crate)fn error(msg: &str) -> Self {
pub(crate) fn error(msg: &str) -> Self {
Nip96Response::GenericError(Json(Nip96UploadResult {
status: "error".to_string(),
message: Some(msg.to_string()),
@ -126,6 +126,7 @@ struct Nip96Form<'r> {
alt: Option<&'r str>,
caption: Option<&'r str>,
media_type: Option<&'r str>,
#[allow(dead_code)]
content_type: Option<&'r str>,
no_transform: Option<bool>,
}