Backend server for szpr.io
- Install the node packages
- Run the server process
๐๏ธ Project Directory Structure
- Server
- bin
- configs
- v1
- controllers
- models
- routes
Route |
HTTP Method |
Description |
v1/link/:nanoId |
GET |
Redirects to a link |
v1/link |
POST |
Creates a new link document |
{
"_id": "ObjectId",
"name": {
"first": "String",
"last": "String",
"user": "String"
},
"paid": "Boolean"
}
{
"_id": "ObjectId",
"analytics": {
"clicks": "Number"
},
"date": {
"createdAt": "Date",
"updatedAt": "Date"
},
"link": "String",
"nanoId": "String",
"user": "String",
"title": "String"
}