Use PHP magic method __call to handle all router methods in one function.