From 0a040632985397c47c455f41ebd21d3a2c8d62ff Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 8 Jan 2024 10:53:19 -0600 Subject: [PATCH] moving to production api --- layouts/shortcodes/health-form.html | 4 ++-- layouts/shortcodes/mt-form.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/shortcodes/health-form.html b/layouts/shortcodes/health-form.html index 88863f4..3fd6ff4 100644 --- a/layouts/shortcodes/health-form.html +++ b/layouts/shortcodes/health-form.html @@ -69,8 +69,8 @@ // For use in dev // Can now start using this in production IF, // I get the server running on the server - /* let base = "https://api.tfcconnection.org/health-form"; */ - let base = "http://localhost:4242/health-form"; + let base = "https://api.tfcconnection.org/health-form"; + /* let base = "http://localhost:4242/health-form"; */ fetch(base, { method: "POST", body: data diff --git a/layouts/shortcodes/mt-form.html b/layouts/shortcodes/mt-form.html index 7c2b194..d080afc 100644 --- a/layouts/shortcodes/mt-form.html +++ b/layouts/shortcodes/mt-form.html @@ -12,8 +12,8 @@ const age = calculate_age(birthdate); data.append("age", age); - /* let base = "https://api.tfcconnection.org/mt-form"; */ - let base = "http://localhost:4242/mt-form"; + let base = "https://api.tfcconnection.org/mt-form"; + /* let base = "http://localhost:4242/mt-form"; */ fetch(base, { method: "POST",