UNPKG

nodeclipse

Version:

nodeclipse CLI - prepare Node.js project to be imported into Eclipse (Nodeclipse); Installer - eclipse plugin CLI installer

7 lines (5 loc) 219 B
var vertx = require('vertx'); vertx.createHttpServer().requestHandler(function(req) { var file = req.path() === '/' ? 'index.html' : req.path(); req.response.sendFile('/' + file); // 'webroot/' }).listen(8080)