URL Shortener Microservice
https://urlshortener.radiidev.repl.co/
| public | ||
| views | ||
| .gitignore | ||
| .replit | ||
| nodemon.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| sample.env | ||
| server.js | ||
API Project: URL Shortener Microservice for freeCodeCamp
User Stories
- You should provide your own project, not the example URL.
- You can POST a URL to
/api/shorturl/newand get a JSON response with the property namesoriginal_urlandshort_urland the expected values for each. - When you visit
/api/shorturl/<short_url>, you will be redirected to the original URL. - If you pass an invalid URL that doesn't follow the valid
http://www.example.comformat, the JSON response will contain{ 'error': 'invalid url' }.