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