Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 346 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 346 Bytes

URL Shortener

Flask TinyURL clone.

# API requests
import requests

address = "<your server IP here>"
payload = {
    "shortened": "github",
    "url": "https://www.github.com"
}

r = requests.post(address + "/create", json=payload)
print(r.text)
# redirects
http://address/github -> https://www.github.com