projects
/
outofuni
/
reservix-print.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (initial)
initial checkin
master
author
hackbard
<hackbard@hackdaworld.org>
Sun, 17 Dec 2017 12:08:59 +0000
(12:08 +0000)
committer
hackbard
<hackbard@hackdaworld.org>
Sun, 17 Dec 2017 12:08:59 +0000
(12:08 +0000)
reservix-print.js
[new file with mode: 0644]
patch
|
blob
diff --git a/reservix-print.js
b/reservix-print.js
new file mode 100644
(file)
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+'!');
+});
+