roster-server
Version:
š¾ RosterServer - A domain host router to host multiple HTTPS.
18 lines (13 loc) ⢠388 B
JavaScript
;
var express = require("express");
var app = express();
app.use("/", function(req, res) {
res.setHeader("Content-Type", "text/html; charset=utf-8");
res.end("Hello, World!\n\nš š.js");
});
// DO NOT DO app.listen() unless we're testing this directly
if (require.main === module) {
app.listen(3000);
}
// Instead do export the app:
module.exports = app;