diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..f70d4b7 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,23 @@ +import { ExpressAuth } from "@auth/express"; +import dotenv from "dotenv"; +import express from "express"; + + +dotenv.config(); + +const app = express(); +const port = Number(process.env.PORT ?? 3001); + +app.set("trust proxy", 1); + +app.use(express.json()); + + +app.get("/api/health", (_req, res) => { + res.json({ status: "ok" }); +}); + + +app.listen(port, "0.0.0.0", () => { + console.log(`Server in ascolto sulla porta ${port}`); +});