claudyus / share

A dockerize file sharing app similar to WeTransfer on-prem
https://hub.docker.com/r/claudyus/share/
The Unlicense
8 stars 0 forks source link

List API - JSON #11

Open colthreepv opened 5 years ago

colthreepv commented 5 years ago

Proposing a /list/:random endpoint

This API should return an array of strings, a simple fs.readDir might suffice

claudyus commented 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.

colthreepv commented 5 years ago

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