import express from "express";
import cors from "cors";
import { query } from "@/controllers/QueryBiController.js";
import "dotenv/config";
const app = express();
app.use(express.json());
app.use(cors());
const PORT = 3000;
app.get("/", (req, res) => {
    res.send({
        "message": "welcome to consult API",
        "date": new Date()
    });
});
app.get("/", (req, res) => {
    res.send({
        message: "welcome to consult API",
        date: new Date()
    });
});
app.get("/api/angola", query);
app.listen(PORT, () => {
    console.log(`The app is running on port ${PORT}`);
});
app.listen(PORT, () => {
    console.log(`the app   is running on port ${PORT}`);
});
//# sourceMappingURL=server.js.map