From 4314388d113faccc27b0e233253bcd85d6837596 Mon Sep 17 00:00:00 2001 From: william mantly Date: Thu, 11 Aug 2016 12:30:08 -0400 Subject: [PATCH] download data dump from dajngo db --- routes/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routes/index.js b/routes/index.js index 8b17333..73c0e77 100644 --- a/routes/index.js +++ b/routes/index.js @@ -14,4 +14,8 @@ router.all('/', function(req, res, next) { res.render('index', { title: 'Express' }); }); +router.get('/dbdump', function(req, res, nex){ + res.sendFile('/var/backups/db/djangodump.json'); +}); + module.exports = router;