Modified main.rs to use a HttpRouter object