ifndefJOSH / usurl

GNU General Public License v3.0
1 stars 0 forks source link

Do not allow the same URL to have multiple shortened links #2

Open ifndefJOSH opened 1 year ago

ifndefJOSH commented 1 year ago

Modify the POST method on the /create endpoint to:

  1. Check to see if long_url is already in the database
  2. If it is, provide an error message saying that this URL has already been shortened.