A short url service.
REDIS_URL
: Redis url.GITHUB_OWNER
: GitHub repo owner.GITHUB_REPO
: GitHub repo name.GITHUB_ISSUE_ID
: GitHub repo issue id for storage.GITHUB_TOKEN
: GitHub access_token withrepo
scope.
Tips. Using a closed & locked issue will be more reliable.
Create a new short url.
$ curl https://t.zce.me/create -d "url=https://zce.me" -d "slug=zce"
url
: target urlslug
: short slug, default:auto nanoid
{
"slug": "<slug>",
"link": "http://t.zce.me/<slug>"
}