Corrigir erro do Cors
This commit is contained in:
+1
-1
@@ -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) => {
|
||||
|
||||
+12
-13
@@ -6,20 +6,19 @@
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<th>Nome</th>
|
||||
<th>E-mail</th>
|
||||
<th>Perfil</th>
|
||||
</thead>
|
||||
<tbody id="conteudo_tabela_usuarios">
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<th>Nome</th>
|
||||
<th>E-mail</th>
|
||||
<th>Perfil</th>
|
||||
</thead>
|
||||
<tbody id="conteudo_tabela_usuarios">
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script src="app.js"></script>
|
||||
|
||||
<script src="js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -15,6 +15,4 @@ async function carregarUsuarios(){
|
||||
});
|
||||
}
|
||||
|
||||
window.onload = () => {
|
||||
carregarUsuarios();
|
||||
};
|
||||
window.onload = carregarUsuarios;
|
||||
Reference in New Issue
Block a user