document conditional redirects

This commit is contained in:
Akbar Rahman 2022-09-21 20:55:48 +01:00
parent b5fdfcb49c
commit 58bb2432fb
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

View File

@ -7,11 +7,21 @@ sus URL shortener
- creating a new shortlink at https://pls.cx/shortlink
susmng [-s pls.cx] create -l shortlink -v https://example.com
susmng [-s pls.cx] create -l shortlink -r https://example.com
- creating a new shortlink at https://pls.cx/shortlink which redirects to https://example.com/a the first n times, https://example.com/b any other times
susmng [-s pls.cx] create -l shortlink -r https://example.com/a \
-c hits,gt,<n> -a https://example.com/b
- creating a new shortlink at https://pls.cx/shortlink which redirects to https://example.com/before before unix timestamp n (seconds), https://example.com/after after that
susmng [-s pls.cx] create -l shortlink -r https://example.com/before \
-c timestamp,gt,<n> -a https://example.com/after
- deleting the shortlink https://pls.cx/shortlink
susmng [-s pls.cx] delete -l shortlink -v confirm
susmng [-s pls.cx] delete -l shortlink
- listing all shortlinks on the server pls.cx