mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 20:25:26 +00:00
16 lines
287 B
JavaScript
16 lines
287 B
JavaScript
let express = require("express");
|
|
let instance = express();
|
|
|
|
|
|
instance.listen(80, "127.0.0.1", function(req, res) {
|
|
console.log("Listening on 80")
|
|
});
|
|
|
|
instance.get("/", function (req, res) {
|
|
res.send("Hello there")
|
|
});
|
|
|
|
instance.on("error", function() {
|
|
console.log("got error");
|
|
})
|