Update dependencies, README

This commit is contained in:
2019-05-24 12:04:21 +05:30
parent 762ceefc79
commit 464c6c1c3f
4 changed files with 622 additions and 26 deletions

View File

@@ -1,24 +1,3 @@
/*
POST request contains a JSON object
{
"loc": <path>
}
Reply format
{
"loc": <path>,
"back": <path to return to>
"contents":[
{
"name": <file name>,
"path": <path>
"isDir": <true|false>
}
]
}
*/
const express = require('express')
const bodyParser = require('body-parser')
const fs = require('fs')
@@ -26,6 +5,7 @@ const path = require('path')
const processing = require('./processing')
const port = 8080;
app = express()
let settings = JSON.parse(fs.readFileSync("settings.json"))