function version(r) { r.return(200, njs.version); } function hello(r) { r.return(200, "Hello world!\n"); } export default {version, hello}