Open potokslow opened 3 months ago
I guess a REST call is not enough?
I think that having pastes listed on a web page would be easier to use than API.
REST call could work in the absence of a web list, but please include an example of such call in the readme. I have no idea how to request the list...
Okay, I have some PoC but I am not sure how this is really that useful. At the end of the day it's just a list of links. Is it really all you need?
The main points behind this idea are to:
Ideally, it would be great to have a table with:
Thank you
Unfortunately, creation date is not stored (anymore). Title would be possible but depending on the size of the database, I am not sure we are coming into denial-of-service area. In fact, I am already a bit worried dumping the entire list each time. On the other hand, I am also a bit too lazy to implement pagination now. So this is what I could offer:
Or maybe just use sqlite SELECT * FROM entries;
? You can also remove stuff this way (DELETE FROM entries WHERE id = ID
)
I actually think it's a feature that none of the visitors is able to see what other people posted, unless you have the exact link. If anything i would argue to make the random link longer and thus harder to guess.
Unless obviously you also want to go through the rabbit hole of creating a public-flag not unlike pastebin
EDIT:
Actually thinking about this more i might have a good idea.
Since the usecase is "managing the pastes", i can assume it will be the sysadmin who will use this feature. Since I personally do not think this project need a user management (for all the fancy stuff there are already alternative platforms you can use), but instead remain to be slick, slim, and fast. So creating an admin feature is probably out of scope.
This basically leaves cli-tools to solve this problem
Pro:
Con:
I personally like this idea for it's (probably) low efforts to implement, and this can probably recycle a lot of existing functions/code.
+1 this idea, besides, can be related with #54 to keep trace of the usage for the server and force the expiration specific files.
Hi,
Is there a way to have all existing pastes listed on the home page, or have a separate page with such list? This would be very helpful for managing the pastes.
Thank you