Work on All Pages section

This commit is contained in:
NGPixel
2017-04-17 22:44:04 -04:00
parent d02b4a3591
commit 1d8285fb6a
9 changed files with 122 additions and 126 deletions

View File

@@ -18,6 +18,19 @@ module.exports = (socket) => {
})
}
// -----------------------------------------
// TREE VIEW (LIST ALL PAGES)
// -----------------------------------------
if (socket.request.user.logged_in) {
socket.on('treeFetch', (data, cb) => {
cb = cb || _.noop
entries.getFromTree(data.basePath).then((f) => {
return cb(f) || true
})
})
}
// -----------------------------------------
// UPLOADS
// -----------------------------------------