Fixed #2. If route is a function, call it with req and res objects