Handle arbitrary number of arguments in router