We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d8cc96 commit 4bac79eCopy full SHA for 4bac79e
assets/main.js
@@ -36,8 +36,8 @@
36
try {
37
status.textContent = "Sending...";
38
39
- const res = await fetch(form.action, {
40
- method: form.method,
+ const res = await fetch("/api/contact", {
+ method: "POST",
41
headers: { "Content-Type": "application/json" },
42
body: JSON.stringify({
43
name: form.name.value,
contact.html
@@ -1,7 +1,7 @@
1
---
2
sitemap: false
3
4
-<form class="contact-form" action="{{ site.url | replace: '://', '://api.' }}/v1/contact" method="POST">
+<form class="contact-form">
5
<input type="hidden" name="sender" />
6
<input type="hidden" name="ts_eliot" />
7
<fieldset>
0 commit comments