Markdown editor improvements

This commit is contained in:
NGPixel
2016-09-10 22:53:21 -04:00
parent 492bb9efa6
commit 97602b51c8
160 changed files with 558 additions and 123 deletions

View File

@@ -110,11 +110,17 @@ io.on('connection', (socket) => {
}
});
socket.on('searchDel', (data, cb) => {
if(internalAuth.validateKey(data.auth)) {
search.delete(data.entryPath);
}
});
socket.on('search', (data, cb) => {
search.find(data.terms).then((results) => {
cb(results);
});
})
});
});