use idiomatic block syntax in router_spec