rushlink/assets/templates/txt/index.txt.tmpl

17 lines
471 B
Cheetah
Raw Normal View History

2019-08-25 21:33:56 +02:00
#RU URL SHORTENER
=================
Based on https://0x0.st/, this site allows you to easily shorten URLs using
the command line.
## USAGE
# Upload a file
curl -F'file=@yourfile.png' https://{{.Request.Host}}
2019-08-25 21:33:56 +02:00
# 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}}