Skip to content

Commit

Permalink
wat
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianMrn committed Dec 7, 2018
1 parent dd926ec commit e7a8515
Show file tree
Hide file tree
Showing 5 changed files with 449 additions and 0 deletions.
19 changes: 19 additions & 0 deletions kek.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
return (module.exports = {
left() {
// code

return 'OK LEFT';
},

right() {
// code

return 'OK RIGHT';
},

shoot() {
// code

return 'OK SHOOT';
},
});
55 changes: 55 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.16.4",
"pi-servo-blaster.js": "0.0.3"
}
}
25 changes: 25 additions & 0 deletions webserver.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const express = require('express');
const app = express();

const { left, right, shoot } = require("./kek");

app.get('/left', function (req, res) {

console.log(left());
res.send('OK');
});

app.get('/right', function (req, res) {

console.log(right());
res.send('OK');
});

app.get('/shoot-that-mofo', function (req, res) {

console.log(shoot());
res.send('OK');
});

app.listen(3000);
console.log('listening on port 3000');
Loading

0 comments on commit e7a8515

Please sign in to comment.