Improved the way res.render can be called.APIS can just call res.render(data) without res.render("",data).The viewId will be set to empty if it is not provided.