Reject all external routes when parsing a route (#1272)

* reject all external routes when parsing a route

* fix children routers
This commit is contained in:
ealmloff authored and GitHub committed 2023-08-01 12:29:35 -05:00
1 parent 39e89c1fac
commit 61ce3dd6b7
2 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -367,7 +367,7 @@ impl<'a> RouteTreeSegmentData<'a> {
let child_name = &child.ident;
quote! {
let mut trailing = String::new();
let mut trailing = String::from("/");
for seg in segments.clone() {
trailing += seg;
trailing += "/";