I adapted this server from my Boilerplate api project.
GET - http://localhost:3000/api/users
POST - http://localhost:3000/api/user/create
Body:
{
"name": "Users name",
"email": "Users email",
"password": "Users password"
}
POST - http://localhost:3000/api/user/login
Body:
{
"email": "Users email",
"password": "Users password"
}
POST - http://localhost:3000/api/stamps/add-stamp
Body:
{
"_id": "admins user id from mongo db",
"customerId": "Users id that is generated upon signup (NOT MongoDB ID)",
"stampsToAdd": "This needs to be a number"
}