aboutsummaryrefslogtreecommitdiff
path: root/src/server.js
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2018-12-12 23:07:35 -0500
committerMark Powers <markppowers0@gmail.com>2018-12-12 23:07:35 -0500
commita07240123175ce399d8b685910d83523daf88f12 (patch)
tree8b384c1da5181ed8be543792d877b48a83b8e165 /src/server.js
parentf2d0e534090be82a71506a9ba9789a08c4add6f0 (diff)
Add telegram score
Diffstat (limited to 'src/server.js')
-rw-r--r--src/server.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server.js b/src/server.js
index 80be952..241f3fc 100644
--- a/src/server.js
+++ b/src/server.js
@@ -1,4 +1,5 @@
const express = require('express');
+const request = require('request');
const port = 80;
@@ -13,6 +14,10 @@ function setUpRoutes(){
server.get('/bread', (req, res) => res.sendFile(__dirname + "/html/bread.html"));
server.get('/essay', (req, res) => res.sendFile(__dirname + "/html/essay.html"));
server.get('/snake', (req, res) => res.sendFile(__dirname + "/html/snake.html"));
+ server.get('/setScore', (req, res) => {
+ request(`http://localhost:8000?${req.url.split("?")[1]}`, function(error, response, body) {
+ });
+ })
server.get('/css/:id', (req, res) => {