Update test to use nest_service
@@ -12,10 +12,7 @@ fn nested() {
let mut outer = tide::new();
// Nest the inner app on /foo
- outer
- .at("/foo")
- .strip_prefix()
- .get(inner.into_http_service());
+ outer.at("/foo").nest_service(inner);
let mut server = make_server(outer.into_http_service()).unwrap();
@@ -53,7 +50,7 @@ fn nested_middleware() {
app.middleware(test_middleware);
app.at("/echo").get(echo_path);
app.at("/:foo/bar").strip_prefix().get(echo_path);
- route.strip_prefix().get(app.into_http_service());
+ route.nest_service(app);
});
app.at("/bar").get(echo_path);
