From: hackbard Date: Sun, 17 Dec 2017 12:08:59 +0000 (+0000) Subject: initial checkin X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=HEAD;p=outofuni%2Freservix-print.git initial checkin --- 001f89619d952c51cef0b6e1e4b3c27deaedd030 diff --git a/reservix-print.js b/reservix-print.js new file mode 100644 index 0000000..2f5d004 --- /dev/null +++ b/reservix-print.js @@ -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+'!'); +}); +