return res.json({
"original_url" : url,
"short_url" : id
});
and i got this json returned
but why i got this result from the test ?
really wonder why, cause it’s literally match the result of the example project that given from the project description
// running tests
You can POST a URL to /api/shorturl/new 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.
// tests completed