Change route names
This commit is contained in:
parent
651c8f9de7
commit
74a06fccf3
@ -65,8 +65,8 @@ function Form({ theme }) {
|
||||
editor.update(() => {
|
||||
const sendMail = async () => {
|
||||
await axios
|
||||
.post(`${process.env.REACT_APP_BACKEND_URL}/report_bug`, {
|
||||
subject: data.title,
|
||||
.post(`${process.env.REACT_APP_BACKEND_URL}/send_email`, {
|
||||
subject: `[BUG REPORT]: ${data.title}`,
|
||||
message: $generateHtmlFromNodes(editor),
|
||||
attachments: data.attachments,
|
||||
})
|
||||
|
@ -69,7 +69,7 @@ function SurveyForm({ theme }) {
|
||||
editor.update(() => {
|
||||
const sendMail = async () => {
|
||||
await axios
|
||||
.post(`${process.env.REACT_APP_BACKEND_URL}/report_bug`, {
|
||||
.post(`${process.env.REACT_APP_BACKEND_URL}/send_email`, {
|
||||
subject: `[SURVEY]: ${new Date().toDateString()}`,
|
||||
message: `${Object.keys(form).map(
|
||||
(k) => `<div>${questions[k]}</div><div>${form[k]}</div>`
|
||||
|
Loading…
Reference in New Issue
Block a user