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

22 lines
638 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
2019-12-17 11:13:32 +01:00
curl -F'file=@yourfile.png' {{.RootURL}}
2019-08-25 21:33:56 +02:00
# Shorten a URL
2019-12-17 11:13:32 +01:00
curl -F'shorten=http://example.com/some/long/url' {{.RootURL}}
# The first line of the result will contain the shortened URL.
#
# In the other lines, you will find other information, including
# information on how to delete the shortened object.
# To upload a file and only extract the shortened URL (i.e. throw away the rest)
2019-12-17 11:13:32 +01:00
curl -F'file=@yourfile.png' {{.RootURL}} | head -n 1