Small API to cut links. Runs over app memory or Redis (for persistant links).
- Pass your URL to API
curl \
--header "Content-Type: application/x-www-form-urlencoded" \
--header "X-Lnk-Token: your-token" \
--request POST \
--data 'url=https://my-test-url.com&uid=your-uid&ttl=10m' \
http://localhost:8010/
You'll get response with a cutted link.
- Use a cutted link
docker-compose -f docker-compose.dev.yml up
docker-compose -f docker-compose.dev.yml run lnk /usr/share/python3/app/bin/pytest
docker-compose -f docker-compose.dev.yml run lnk /usr/share/python3/app/bin/flake8