Two endpoints needs to be implemented using the codec from #7.
[x] /encode
[x] /decode
They should use the database module from #5 and be based on the API from #3.
encode should receive a string (unshortened URL), count rows in the database, encode that amount as a string, and then return the encoded row id
decode should receive a string (shortened URL), decode it into an int, then look at the matching row in the database to get the original link, and return it
Two endpoints needs to be implemented using the codec from #7.
They should use the database module from #5 and be based on the API from #3.
encode
should receive a string (unshortened URL), count rows in the database, encode that amount as a string, and then return the encoded row iddecode
should receive a string (shortened URL), decode it into an int, then look at the matching row in the database to get the original link, and return it