diff --git a/src/service/http/builder.rs b/src/service/http/builder.rs index f0bf5d7c..4e8a6bb3 100644 --- a/src/service/http/builder.rs +++ b/src/service/http/builder.rs @@ -104,7 +104,7 @@ where #[cfg(feature = "open-api")] pub fn api_router(mut self, router: ApiRouter) -> Self { - self.router = self.router.merge(router); + self.api_router = self.api_router.merge(router); self }