From 985dfaa8abe2c12c26628e4cb3dedadd767262e4 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 1 Jul 2022 03:59:01 +0400 Subject: [PATCH] Added a Delete section in an index template. --- web/templates/index.jade | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/templates/index.jade b/web/templates/index.jade index 630aaa5..22db11e 100644 --- a/web/templates/index.jade +++ b/web/templates/index.jade @@ -30,6 +30,14 @@ block body p.center Over I2P: #[code curl --proxy 127.0.0.1:4444 -F 'file=@somefile.ext' http://upload.arav.i2p] p.center A resulted link looks like this: #[code /f/base64rawURL(sha256)/filename.ext]. p.center filename.ext is mandatory. It is a name the file will be retrieved with. + section + h2 Delete + form(action="/delete" method="POST") + input(type="text", name="hash" placeholder="File hash goes here" minlength="43" maxlength="43" size="43" required="") + button(type="submit") Delete + section + p.center You can delete a file using cURL: #[code curl -XDELETE https://upload.arav.top/] + p.center Over I2P: #[code curl --proxy 127.0.0.1:4444 -XDELETE https://upload.arav.top/] section h2 Privacy statements p I WILL cooperate with law enforcements and provide them with logs, guess I shouldn't clarify why. Abuses should be sent to #[a(href="mailto:admin@arav.top") admin@arav.top].