fix: don't assume OutOfOrder and GET for /

This commit is contained in:
Greg Johnston 2023-05-05 10:20:36 -04:00
parent ea153e4f26
commit ef45828ca7
2 changed files with 6 additions and 6 deletions

View file

@ -1068,9 +1068,9 @@ where
let path = listing.path();
if path.is_empty() {
RouteListing::new(
"/",
Default::default(),
[leptos_router::Method::Get],
"/".to_string(),
listing.mode(),
listing.methods(),
)
} else {
listing

View file

@ -992,9 +992,9 @@ where
let path = listing.path();
if path.is_empty() {
RouteListing::new(
"/",
Default::default(),
[leptos_router::Method::Get],
"/".to_string(),
listing.mode(),
listing.methods(),
)
} else {
listing