Note new changes require a authorization header attached
/api/auth/update
Link - https://documenter.getpostman.com/view/20664824/VUxKT9DC
/short
- Takes the fullUrl parameter from the req.body and insert then wait for the record to be inserted using the model.
POSTMAN
After New Changes
Old functionality
/expand
- Requires the short url ID.
- searches for the long url in DB.
- Returns the long url.
/delete
- Removes the particular record from the database.
- Requires the shortURL ID to be passed.
- Requires the auth header.
- Basic Understanding of Node and JavaScript.
- Node and NPM installed.
- Clone the repo.
- Run
npm install
- Run
node server.js
- Server will be running at
locahost:5000