it is as easy as doing a REST method, but with an ...
# kohesive
a
it is as easy as doing a REST method, but with an annotation to say what the template is (must match registered template engine):
Copy code
@Rendered("search-results.ftl")
public fun UserContext.getCompaniesSearch(name: String, country: String?): Promise<CompanySearchResults, Exception> {
    …
}