src/api_schema/router.rs: disable debug println
This commit is contained in:
parent
a42d1f55c3
commit
4ae6551c78
|
@ -292,12 +292,12 @@ impl Router {
|
||||||
SubRoute::None => {},
|
SubRoute::None => {},
|
||||||
SubRoute::Hash(ref dirmap) => {
|
SubRoute::Hash(ref dirmap) => {
|
||||||
if let Some(ref router) = dirmap.get(dir) {
|
if let Some(ref router) = dirmap.get(dir) {
|
||||||
println!("FOUND SUBDIR {}", dir);
|
//println!("FOUND SUBDIR {}", dir);
|
||||||
return router.find_route(rest, uri_param);
|
return router.find_route(rest, uri_param);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SubRoute::MatchAll { ref router, ref param_name } => {
|
SubRoute::MatchAll { ref router, ref param_name } => {
|
||||||
println!("URI PARAM {} = {}", param_name, dir); // fixme: store somewhere
|
//println!("URI PARAM {} = {}", param_name, dir); // fixme: store somewhere
|
||||||
uri_param.insert(param_name.clone(), dir.into());
|
uri_param.insert(param_name.clone(), dir.into());
|
||||||
return router.find_route(rest, uri_param);
|
return router.find_route(rest, uri_param);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue