aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
authorlaurawilsonri <laura_wilson@brown.edu>2019-02-25 20:11:37 -0500
committerlaurawilsonri <laura_wilson@brown.edu>2019-02-25 20:11:37 -0500
commit3ef178ab23eae665a7323ae54e14114a2b6e656e (patch)
tree5f97a342f4e1e8d322035158e53eaf4bd4774305 /src/server/index.ts
parent171852260c04ba7aafd789b231d98cdaa2a7dc8d (diff)
parent292ff1a8d75f8b15f9388d2c577e09a13836d5dc (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.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index f5e66b31b..eb0527ee7 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -31,6 +31,12 @@ const MongoStore = require('connect-mongo')(session);
const mongoose = require('mongoose');
const bluebird = require('bluebird');
import { performance } from 'perf_hooks'
+import * as fs from 'fs';
+import * as request from 'request'
+
+const download = (url: string, dest: fs.PathLike) => {
+ request.get(url).pipe(fs.createWriteStream(dest));
+}
const mongoUrl = 'mongodb://localhost:27017/Dash';
// mongoose.Promise = bluebird;