Back End Development and APIs Projects - URL Shortener Microservice

Tell us what’s happening:
Describe your issue in detail here.
please help,i have tried and tried and its still not posting the url. whats wrong

Your project link(s)

solution: boilerplate-project-urlshortener-3 - Replit

Your browser information:

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

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

Link to the challenge:

This is the test for posting a url:

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}

And, your Replit code has a different path for the POST request - note the difference in the path:

app.post('/api/shorturl/new', function(req, res) { ...

wow thanks a lot it worked…i was sooooo confused

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