Closed sathudeva7 closed 10 months ago
The purpose of this PR is to fix #40
This issue involves implementing an API to create email template. The endpoint should allow Admin to make a POST request to {{baseUrl}}/api/admin/emails/templates.
const emailRepositroy = dataSource.getRepository(Email) const newEmailTemplate = new Email(recipient, subject, content, state) const savedEmailTemplate = await emailRepositroy.save(newEmailTemplate)
Purpose
The purpose of this PR is to fix #40
Goals
This issue involves implementing an API to create email template. The endpoint should allow Admin to make a POST request to {{baseUrl}}/api/admin/emails/templates.
Approach
Screenshots
Checklist
Related PRs
## Test environment ## Learning