Remove SpaRouter (#1784)

This commit is contained in:
David Pedersen
2023-02-25 11:05:23 +01:00
committed by GitHub
parent f726f16b6d
commit 27f05ad32e
4 changed files with 26 additions and 231 deletions
-6
View File
@@ -12,9 +12,6 @@ use tower_service::Service;
mod resource;
#[cfg(feature = "spa")]
mod spa;
#[cfg(feature = "typed-routing")]
mod typed;
@@ -28,9 +25,6 @@ pub use axum_macros::TypedPath;
#[cfg(feature = "typed-routing")]
pub use self::typed::{SecondElementIs, TypedPath};
#[cfg(feature = "spa")]
pub use self::spa::SpaRouter;
/// Extension trait that adds additional methods to [`Router`].
pub trait RouterExt<S, B>: sealed::Sealed {
/// Add a typed `GET` route to the router.