PORT = "Write your port here"
jwtSecretKey = "Write your secret key here"
databaseUrl = "Write your mongodb url here"
npm install npm run dev npm run test POST /create-token
| Parameter | Type | Description |
|---|---|---|
email |
string |
Required. Email address |
You get your unique token in response. You need to set it in your header for the rest of the requests as you can see in example blew.
Authorization : "Bearer your token"
POST /create-link
| Parameter | Type | Description |
|---|---|---|
userId |
string |
Required. User Id |
POST /get-link
| Parameter | Type | Description |
|---|---|---|
userId |
string |
Required. User Id |
POST /create-promo
| Parameter | Type | Description |
|---|---|---|
userId |
string |
Required. User Id |
POST /check-promo
| Parameter | Type | Description |
|---|---|---|
promo |
string |
Required. Promo Code |