Skip to content

Commit f0a1d72

Browse files
.
1 parent 88adbd0 commit f0a1d72

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/frontend/js/adminProducts.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export async function initAdminProducts() {
106106

107107
if (!table) return;
108108

109-
const request = await fetch('http://127.0.0.1:8000/api/product/get_all_products.php');
109+
const request = await fetch('https://www.minhalojaminhavida.singlotown.com.br/api/product/get_all_products.php');
110110

111111
const products = await request.json();
112112

@@ -129,7 +129,7 @@ export async function initAdminProducts() {
129129
const data = {
130130
'id': e.target.value
131131
};
132-
const request = await fetch('http://127.0.0.1:8000/api/admin/delete_product.php', {
132+
const request = await fetch('https://www.minhalojaminhavida.singlotown.com.br/api/admin/delete_product.php', {
133133
method: 'POST',
134134
headers: {
135135
'Content-Type': 'application/json'
@@ -197,7 +197,7 @@ export async function initAdminProducts() {
197197
});
198198

199199
try {
200-
const request = await fetch('http://127.0.0.1:8000/api/admin/create_product.php', {
200+
const request = await fetch('https://www.minhalojaminhavida.singlotown.com.br/api/admin/create_product.php', {
201201
method: 'POST',
202202
body: formData,
203203
});
@@ -587,7 +587,7 @@ async function requestEditProduct(id, nam, descriptio, valu, qt, image, urlsToDe
587587
});
588588

589589
try {
590-
const request = await fetch('http://127.0.0.1:8000/api/admin/edit_product.php', {
590+
const request = await fetch('/api/product/get_all_products.php/api/admin/edit_product.php', {
591591
method: 'POST',
592592
body: formData,
593593
});

src/frontend/js/login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function initLogin() {
3030
};
3131

3232

33-
const request = await fetch('http://127.0.0.1:8000/api/login/login.php', {
33+
const request = await fetch('https://www.minhalojaminhavida.singlotown.com.br/api/login/login.php', {
3434
method: 'POST',
3535
headers: {
3636
'Content-Type': 'application/json'

src/frontend/js/produtos.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function initProductsList() {
2424
const productList = document.getElementById("product-list");
2525
productList.innerHTML = "";
2626

27-
const request = await fetch("http://127.0.0.1:8000/api/product/get_all_products.php");
27+
const request = await fetch("https://www.minhalojaminhavida.singlotown.com.br/api/product/get_all_products.php");
2828
const products = await request.json();
2929

3030
if (products.success === false) {

src/frontend/js/register.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function initRegister() {
3737

3838
console.log("data");
3939

40-
const request = await fetch('http://127.0.0.1:8000/api/login/register.php', {
40+
const request = await fetch('https://www.minhalojaminhavida.singlotown.com.br/api/login/register.php', {
4141
method: 'POST',
4242
headers: {
4343
'Content-Type': 'application/json'

0 commit comments

Comments
 (0)