Shortens links.
-
Create a .env, alternatively remove ".example" from
.env.example -
npm install -
npm start
GET /
Returns all shortened links
GET /:id
Redirects you to the real url of the shortened link
POST /
password: pw123
Content-Type: application/json
{
"url": "https://github.com/follgad"
}
201 Created
Content-Type: application/json
{
"url": "https://github.com/follgad",
"createdAt": "2018-02-13T22:08:52.158Z",
"visits": 0,
"_id": "3d0gFbw8"
}
DELETE /:id
password: pw123
204 No Content
Deletes the link at the specific ID