From c82a71f7d026729a1b8e6696ad99dd0659c97933 Mon Sep 17 00:00:00 2001 From: Daan Sprenkels Date: Sun, 10 Nov 2019 19:08:05 +0100 Subject: [PATCH] Revert "Remove file storage possibility for now (awaits #12)" This reverts commit 801ac8adbb9455dcd7b1e9092740ac90e0172254. --- assets/templates/html/index.html.tmpl | 5 ++++- assets/templates/txt/index.txt.tmpl | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/assets/templates/html/index.html.tmpl b/assets/templates/html/index.html.tmpl index a182d7f..37f1f7f 100644 --- a/assets/templates/html/index.html.tmpl +++ b/assets/templates/html/index.html.tmpl @@ -8,10 +8,13 @@ the command line. ## USAGE + # Upload a file + curl -F'file=@yourfile.png' {{.Request.Host}} + # Shorten a URL curl -F'shorten=http://example.com/some/long/url' https://{{.Request.Host}} # Shorten a URL with a token to delete it later curl -F'shorten=http://example.com/some/long/url' -F'deleteToken=' https://{{.Request.Host}} -{{end}} +{{end}} \ No newline at end of file diff --git a/assets/templates/txt/index.txt.tmpl b/assets/templates/txt/index.txt.tmpl index 9dd38e7..eb8b0f2 100644 --- a/assets/templates/txt/index.txt.tmpl +++ b/assets/templates/txt/index.txt.tmpl @@ -6,6 +6,9 @@ the command line. ## USAGE + # Upload a file + curl -F'file=@yourfile.png' {{.Request.Host}} + # Shorten a URL curl -F'shorten=http://example.com/some/long/url' https://{{.Request.Host}}