From 6ebd25eba5b913acc8b4376c161d81880ef6bde8 Mon Sep 17 00:00:00 2001
From: Joao Maria Araujo do Nascimento <1724026@ifrn.local>
Date: Thu, 18 Jun 2026 22:16:49 -0300
Subject: [PATCH] Corrigir erro do Cors
---
backend/app.js | 2 +-
frontend/index.html | 25 ++++++++++++-------------
frontend/{ => js}/app.js | 4 +---
3 files changed, 14 insertions(+), 17 deletions(-)
rename frontend/{ => js}/app.js (92%)
diff --git a/backend/app.js b/backend/app.js
index 79e15e7..8a55f6e 100644
--- a/backend/app.js
+++ b/backend/app.js
@@ -5,7 +5,7 @@ import cors from "cors";
// Inicialização do Express
const app = express();
-app.use(cors);
+app.use(cors());
// Rota de saúde, utilizada para testar se a API-REST está no ar
app.get("/health", (req, res) => {
diff --git a/frontend/index.html b/frontend/index.html
index aa67a45..5cc12ff 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -6,20 +6,19 @@
Document
-
-
-
-
- | Nome |
- E-mail |
- Perfil |
-
-
+
+
+
+ | Nome |
+ E-mail |
+ Perfil |
+
+
-
-
-
+
+
-
+
+