/locations/:slug/votes

πŸ™… GET /

Display active = false only if you are [O] or [A] and have access to the location

{
    "employer": slug
}

πŸ™… GET /id/:id

Display active = false only if you are [O] or [A] and have access to the location

πŸ™… POST /

Need to confirm the user has access to this location

πŸ™… POST /submit/:type

Sends email if :type = btob or btoc and saves data if employer

Types are:
btob, btoc or employer

All require:
{
	"yourName": "Tom Gough",
	"yourEmail": "[email protected]",
	"yourPhone": "07624308679",
	"businessName": "Manx Telecom",
	"businessBranch": "Douglas",
	"voteBody": "They're great!"
}

btob also needs:
{
	"yourBusiness": "Thomas Patrick"
}

employer also needs:
{
	"yourPosition": "Tea Bitch"
}

πŸ™… [O] [A] PUT /

Need to confirm the user has access to this location

πŸ™… [O] [A] DELETE /

Need to confirm the user has access to this location

Last updated

Was this helpful?