Frontend início
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import express from "express";
|
||||
import usuarioRouter from "./routers/usuarioRouter.js";
|
||||
import cors from "cors";
|
||||
|
||||
// Inicialização do Express
|
||||
const app = express();
|
||||
|
||||
app.use(cors);
|
||||
|
||||
// Rota de saúde, utilizada para testar se a API-REST está no ar
|
||||
app.get("/health", (req, res) => {
|
||||
res.json({
|
||||
|
||||
Reference in New Issue
Block a user