class SiteTermsController {

    @PreAuthorize("permitAll")
    @GetMapping("terms-and-conditions")
    public String termsAndConditions() {
        SiteTermsAndConditionsResource siteTermsAndConditions = termsAndConditionsRestService
                .getLatestSiteTermsAndConditions().getSuccess();
        return format("content/%s", siteTermsAndConditions.getTemplate());
    }

}