Skip to content

Commit

Permalink
feat(router): Implement from axum::Router for Routes (#1863)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Aug 8, 2024
1 parent 6aa3cd6 commit 3379d9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tonic/src/service/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ impl Routes {
}
}

impl From<axum::Router> for Routes {
fn from(router: axum::Router) -> Self {
Self { router }
}
}

async fn unimplemented() -> impl axum::response::IntoResponse {
let status = http::StatusCode::OK;
let headers = [
Expand Down

0 comments on commit 3379d9a

Please sign in to comment.