Hey everyone. Can anyone help me with this please? Im struggling with this:
You can POST a URL to /api/shorturl
and get a JSON response with original_url
and short_url
properties. Here’s an example: { original_url : 'https://freeCodeCamp.org', short_url : 1}
When you visit /api/shorturl/<short_url>
, you will be redirected to the original URL.
Hope someone can help me. I really need to passed this projects. Thanks in advance.
solution: https://replit.com/@angelikadomingo/boilerplate-project-urlshortener-3
Link to the challenge: