Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MISC] Mailing List Backend Route #10

Open
mraysu opened this issue Jan 8, 2025 · 0 comments · May be fixed by #33
Open

[MISC] Mailing List Backend Route #10

mraysu opened this issue Jan 8, 2025 · 0 comments · May be fixed by #33
Assignees
Labels

Comments

@mraysu
Copy link
Collaborator

mraysu commented Jan 8, 2025

We will want to maintain a mailing list for users who would like to be involved in the regular newsletter being posted by HoMEwork. To do so, we will be creating documents for each email subscribed.

For your PR

1. Create a mongodb schema that contains the following fields:

  • name (contact's full name)
  • email (valid email string)

2. Create the Following Routes

POST api/subscriptions/create - adds an email to the database. Ensure the email is a valid email and is not already on the subscription list.

GET api/subscriptions - request a list of all subscriptions

DELETE api/subscription - removes a subscription from the database, querying using the email string. Validate the email before querying.

@mraysu mraysu added the task label Jan 8, 2025
@PoliteUnicorn PoliteUnicorn self-assigned this Jan 10, 2025
@PoliteUnicorn PoliteUnicorn linked a pull request Jan 23, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants