aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-02-25 12:39:11 -0500
committerbob <bcz@cs.brown.edu>2019-02-25 12:39:11 -0500
commit067eee9293d1016ce6cbd57274bd7cd7f9660c6f (patch)
treef08b5dafc556113b91ed2b972c2d06e7ed722b81 /src/server/index.ts
parentc439f11ba9695703697f7abc53a7cc2fd2d5c1a2 (diff)
parentf8fe6307622439d23d05a7628b3a91851a54797d (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
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;