Closed hammady closed 1 year ago
Below URL is currently the assigned one for the dev stage. POST https://lgigm92nn6.execute-api.us-east-1.amazonaws.com/?email=&topics=MNNexus&topics=Shalimar
Responses:
{
"message": "Successfully subscribed to new topics. A confirmation email has been sent to <email>.",
"topics": [
"MNNexus",
"Shalimar"
]
}
Or:
{
"message": "Already subscribed to all topics.",
"topics": []
}
The user can subscribe to email notifications for any masjid by submitting their email and list of topics. The base URL should be read from the environment.