fix: handle multiple handlers + see desc

change break -> continue to not 404 when the first hander doesn't match
This commit is contained in:
Compositr 2024-11-02 10:48:59 +11:00
parent 545e9bdabe
commit c5e8c151ce

View file

@ -100,14 +100,14 @@ impl Handlers {
continue;
}
break 'matching_loop;
continue 'matching_loop;
}
if url_segment == path_segment {
continue;
}
break 'matching_loop;
continue 'matching_loop;
}
return Some(handler);