Loading...
Create one get endpoint : "shortenurl"
that one param in query param : "url"
And the endpoint return the url shortent
React web app call api with the long url then the api return the short url
The react web app have an input to enter a long url and a validate button.
If the user clic validate, a call to the endpoint "shortenurl" with the long url in the input is set to the query params of the call.
Then the api return the shortenurl.
And the react web app display the shorten url.