Fix Contact Form - Use mailcow network Postfix server successfully
This commit is contained in:
@@ -76,7 +76,9 @@ if (contactSubmitBtn) {
|
||||
|
||||
try {
|
||||
// Python FastAPI 엔드포인트로 요청
|
||||
const response = await fetch('http://localhost:8001/api/contact', {
|
||||
// 현재 페이지의 호스트를 사용
|
||||
const apiUrl = `${window.location.protocol}//${window.location.hostname}:8001/api/contact`;
|
||||
const response = await fetch(apiUrl, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"cpu_temp": "43", "nvme_temp": "35", "uptime_days": 2, "last_update": "06:16:01"}
|
||||
{"cpu_temp": "42", "nvme_temp": "35", "uptime_days": 2, "last_update": "06:22:01"}
|
||||
Reference in New Issue
Block a user