Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get: function(request, response, matches) {
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("UTF-8");
response.setContentType('text/plain');
var term_id = matches[1];
if(!term_id) return response.getWriter().println("No term_id");
var termKey = googlestore.createKey("term", term_id),
termEntity = googlestore.get(termKey);
var termJS = select.fn.toJS(termEntity);
var nt = new rdf().buildTriple(termJS);
print(response).text(nt);
}
},