- I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.
- When I visit that shortened URL, it will redirect me to my original link.
- If I pass an invalid URL that doesn't follow the valid http://www.example.com format, the JSON response will contain an error instead.
https://u2s.herokuapp.com/add/<b>https://abdelaziz18003.github.io/tic-tac-toe/</b>
{"longUrl": "https://abdelaziz18003.github.io/tic-tac-toe/", "shortUrl": "https://u2s.herokuapp.com/l"}
https://abdelaziz18003.github.io/tic-tac-toe/