initial checkin master
authorhackbard <hackbard@hackdaworld.org>
Sun, 17 Dec 2017 12:08:59 +0000 (12:08 +0000)
committerhackbard <hackbard@hackdaworld.org>
Sun, 17 Dec 2017 12:08:59 +0000 (12:08 +0000)
reservix-print.js [new file with mode: 0644]

diff --git a/reservix-print.js b/reservix-print.js
new file mode 100644 (file)
index 0000000..2f5d004
--- /dev/null
@@ -0,0 +1,14 @@
+const express = require('express');
+
+const app = express();
+const port = 8080;
+
+app.get('/print', function(req, res) {
+       res.send('Received print job, thanks!');
+       console.log(req);
+});
+
+app.listen(8080, function() {
+       console.log('Example app listening on port '+port+'!');
+});
+