Skip to content

Commit 4bac79e

Browse files
committed
😳
1 parent 4d8cc96 commit 4bac79e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

assets/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
try {
3737
status.textContent = "Sending...";
3838

39-
const res = await fetch(form.action, {
40-
method: form.method,
39+
const res = await fetch("/api/contact", {
40+
method: "POST",
4141
headers: { "Content-Type": "application/json" },
4242
body: JSON.stringify({
4343
name: form.name.value,

contact.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
sitemap: false
33
---
4-
<form class="contact-form" action="{{ site.url | replace: '://', '://api.' }}/v1/contact" method="POST">
4+
<form class="contact-form">
55
<input type="hidden" name="sender" />
66
<input type="hidden" name="ts_eliot" />
77
<fieldset>

0 commit comments

Comments
 (0)