Back End Development and APIs Projects - URL Shortener Microservice

everything in my project seems to work but when i want to pass the test these two dont ckeck:
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.

Your project link(s)

solution: boilerplate-project-urlshortener - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

Challenge: Back End Development and APIs Projects - URL Shortener Microservice

Link to the challenge:

Your app is not accepting valid urls like:

https://freecodecamp.org/news
OR
https://www.yahoo.com/finance/news/apple-touchscreen-macbook-pro-232631704.html

thank you very much that helped alot

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.