moving to production api
This commit is contained in:
parent
f00ed3a04c
commit
0a04063298
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue