moving to production api

This commit is contained in:
Chris Cochrun 2024-01-08 10:53:19 -06:00
parent f00ed3a04c
commit 0a04063298
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -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",