Allow object or function route handlers