Changed default value of generateApiRoute to true