mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
First Passkit server commit
This commit is contained in:
15
index.js
Normal file
15
index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
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");
|
||||
})
|
||||
Reference in New Issue
Block a user