Open colthreepv opened 5 years ago
Th main purpose of share is to share files in difficult to guest directory. Implementing a "list" features without a global "privileged" access will invalidate the aim of whole project.
There is already a "list" functionality, just it's html-only
I was proposing to make another endpoint json-specific, or just to handle both html/json Accept
header
Proposing a
/list/:random
endpointThis API should return an array of strings, a simple
fs.readDir
might suffice