Change route names

This commit is contained in:
1ilit 2023-10-14 17:02:45 +03:00
parent 651c8f9de7
commit 74a06fccf3
2 changed files with 3 additions and 3 deletions

View File

@ -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,
})

View File

@ -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>`