add endpoint for previewing body of template