Problem with URL Shortener Microservice

I am working on the " URL Shortener Microservice" project which is kinda short on documentation of what it should do. I have it working but it does not seem to pass the tests for the “I’ve completed this challenge” button.

You can POST a URL to /api/shorturl/new and get a JSON response with original_url and short_url properties. However, the test fails.

When you visit /api/shorturl/<short_url> , you will be redirected to the original URL. However, the test fails.

solution: https://boilerplate-project-urlshortener.codecypher.repl.co

Challenge: URL Shortener Microservice

Link to the challenge:

I’ve tried to add new url for the shortening, it seems to be redirecting currently to the home page of submitted url, instead to the actual full url.

For example instead of
https://www.freecodecamp.org/learn/apis-and-microservices/apis-and-microservices-projects/url-shortener-microservice
it redirects to https://www.freecodecamp.org.