Skip to content

Commit 09198e7

Browse files
committed
Add axum support for pretty wrapper.
1 parent 5b3237e commit 09198e7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

html-node-core/src/http.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
mod axum {
33
use axum::response::{Html, IntoResponse, Response};
44

5-
use crate::Node;
5+
use crate::{pretty::Pretty, Node};
66

77
impl IntoResponse for Node {
88
fn into_response(self) -> Response {
99
Html(self.to_string()).into_response()
1010
}
1111
}
12+
13+
impl IntoResponse for Pretty {
14+
fn into_response(self) -> Response {
15+
Html(self.to_string()).into_response()
16+
}
17+
}
1218
}

0 commit comments

Comments
 (0)