Back-End Development and APIs Projects - URL Shortener Microservice

Tell us what’s happening:

Hi everyone, I’m working on the URL Shortener Microservice project. I’m using GitHub Codespaces and I’ve passed 3 out of 4 tests, but test #3 (“When you visit /api/shorturl/<short_url>, you will be redirected to the original URI”) keeps failing.
I have confirmed that my port 3000 is set to “Public” and I’ve tested the redirection manually, which works fine. Here is my code:
[require(‘dotenv’).config();
const express = require(‘express’);
const cors = require('cors]
Any help would be appreciated!

Your code so far

Your browser information:

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

Challenge Information:

Back-End Development and APIs Projects - URL Shortener Microservice

Github Link: freeCodeCamp/curriculum/challenges/english/blocks/back-end-development-and-apis-projects/bd7158d8c443edefaeb5bd0e.md at main · freeCodeCamp/freeCodeCamp · GitHub

This course is archived and is no longer being supported. There’s a known bug that the maintainers have no plans to fix in it. Therefore there is nothing we can do on our end.