diff --git a/cute-files.js b/cute-files.js index 147c0ac..37ff111 100755 --- a/cute-files.js +++ b/cute-files.js @@ -51,7 +51,7 @@ app.use('/files', express.static(process.cwd(), { // This endpoint is requested by our frontend JS app.get('/scan', function(req,res){ - res.send(tree); + res.send(scan('.', 'files')); }); @@ -59,4 +59,4 @@ app.get('/scan', function(req,res){ app.listen(port); -console.log('Cute files is running on port ' + port); \ No newline at end of file +console.log('Cute files is running on port ' + port);