'use strict';
const Hapi=require('hapi');
// Create a server with a host and port
const server=Hapi.server({
host:'localhost', port:8000 });
// Add the route
server.route({ method:'GET', path:'/hello', handler:function(request,h) {
return'hello world'; } });
등록된 댓글이 없습니다.