aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
authorlaurawilsonri <laura_wilson@brown.edu>2019-03-06 10:43:54 -0500
committerlaurawilsonri <laura_wilson@brown.edu>2019-03-06 10:43:54 -0500
commitf93142ada6b4142b55ffaeea1d3f11b5336957a5 (patch)
treed7e7999f14324b163b01d6fbf37563fed4473bbc /src/server/index.ts
parent6283dcc3b7889ff431941e0bcb92591ff7a64e0e (diff)
parent9867d1f7965471d5d9be2f147b33db712b8cea79 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into improveText
Diffstat (limited to 'src/server/index.ts')
-rw-r--r--src/server/index.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index eb0527ee7..4c2e09661 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -85,6 +85,10 @@ app.get("/hello", (req, res) => {
res.send("<p>Hello</p>");
})
+app.use("/corsProxy", (req, res) => {
+ req.pipe(request(req.url.substring(1))).pipe(res);
+});
+
app.get("/delete", (req, res) => {
deleteAll();
res.redirect("/");
@@ -125,7 +129,6 @@ function deleteAll() {
function barReceived(guid: String) {
clients[guid.toString()] = new Client(guid.toString());
- // Database.Instance.print()
}
function addDocument(document: Document) {