I have created a an api which generates the shortid of url given by user.
the problem arise when the page is refreshed it resubmit the previous url in the form.
for example:
request send to server
url submit=>https://google.com
and shortid is generated
now page is refreshed
again https://google.com is submitted and new shortid is generated and stored in database
1