feat: Provide virtual disk operation API

This commit is contained in:
onejibang
2024-05-13 16:35:05 +08:00
parent cf35afcab2
commit 26e83798da
3 changed files with 11 additions and 42 deletions

View File

@@ -54,7 +54,6 @@ export default function express({ substore: $, port, host }) {
// dispatch url to route
const dispatch = (request, start = 0) => {
let { method, url, headers, body } = request;
console.log(url, method, headers, body);
headers = formatHeaders(headers);
if (/json/i.test(headers['content-type'])) {
body = JSON.parse(body);