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

Contact Request Backend Route #4

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

Contact Request Backend Route #4

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

Comments

@mraysu
Copy link
Collaborator

mraysu commented Jan 7, 2025

We want to have a route for receiving contact requests. This will include questions from user and contact information so that HoMEwork can respond to them easily.

Request bodies should have the following fields:

  1. name (full name)
  2. email
  3. phone (phone number)
  4. message (optional)

DO NOT STORE REQUESTS TO MONGODB

For your PR

  • Create POST api/contact route
  • Perform request body validation
    • Ensure email, phone number are valid
  • Send email using the request body (check out nodemailer, which 4FLOT used last year).
  • Please make sure to add an appropriate Subject so our recipients can stay organized
  • To Test:
    • Show screenshots from curl/postman with successful responses
    • Send email to [email protected] and screenshot.
@mraysu mraysu added the task label Jan 7, 2025
@mraysu mraysu mentioned this issue Jan 7, 2025
3 tasks
@westonz7042 westonz7042 linked a pull request Jan 11, 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