first commit
This commit is contained in:
18
index.js
Normal file
18
index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
|
||||
const express = require("express");
|
||||
|
||||
const app = express();
|
||||
const PORT = process.env.PORT || 3000;
|
||||
|
||||
app.use(express.json());
|
||||
|
||||
app.get("/health", (_req, res) => {
|
||||
res.json({ status: "ok" });
|
||||
});
|
||||
|
||||
app.listen(PORT, () => {
|
||||
// Registrar puerto para facilitar el seguimiento en logs.
|
||||
console.log(`Servidor escuchando en http://localhost:${PORT}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user