-
SummaryGreetings! //user_handler.rs
fn get_user_routes() -> OpenApiRoutes {
OpenApiRouter::new().routes(routes!(
test_post_1,
test_post_2
))
}
...
//main.rs
let (router, api) = OpenApiRouter::with_openapi(ApiDoc::openapi())
.nest("/user", get_user_routes()) //and here I wanna add it. In addition, there is a problem: If I change axum version0.7.9 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I don't know utopia, but this sounds like what they're warning about in the panics section here. |
Beta Was this translation helpful? Give feedback.
Sorry, I've never used that library so I can't really help you. From what I gathered skimming the docs, the
routes!
macro creates aMethodRouter
, i.e. it should group just different handlers for a single route and then I assume you add each of these to the router.But again, I really have no idea, it's just a guess, I think you'll have better luck asking there.