diff --git a/crates/core/src/conn/acme/listener.rs b/crates/core/src/conn/acme/listener.rs index d7ffd3f63..dd43736b8 100644 --- a/crates/core/src/conn/acme/listener.rs +++ b/crates/core/src/conn/acme/listener.rs @@ -102,7 +102,7 @@ impl AcmeListener { }; router.routers.insert( 0, - Router::with_path(format!("{}/{token}", WELL_KNOWN_PATH)).goal(handler), + Router::with_path(format!("{}/{{token}}", WELL_KNOWN_PATH)).goal(handler), ); } else { panic!("`HTTP-01` challenge's key should not be none"); diff --git a/crates/oapi/src/swagger_ui/mod.rs b/crates/oapi/src/swagger_ui/mod.rs index 40536b671..6b5f5198f 100644 --- a/crates/oapi/src/swagger_ui/mod.rs +++ b/crates/oapi/src/swagger_ui/mod.rs @@ -195,7 +195,7 @@ impl SwaggerUi { /// Consusmes the [`SwaggerUi`] and returns [`Router`] with the [`SwaggerUi`] as handler. pub fn into_router(self, path: impl Into) -> Router { - Router::with_path(format!("{}/{**}", path.into())).goal(self) + Router::with_path(format!("{}/{{**}}", path.into())).goal(self) } }