refactor(router.rs): use regex! macro + some renamings