17 lines
325 B
JavaScript
17 lines
325 B
JavaScript
const express = require("express");
|
|
const app = express();
|
|
const PORT = process.env.PORT || 3000;
|
|
|
|
app.get("/health", (req, res) => {
|
|
res.json({
|
|
status: "ok",
|
|
service: "pistachio-api",
|
|
timestamp: new Date().toISOString(),
|
|
});
|
|
});
|
|
|
|
app.listen(PORT, () => {
|
|
console.log(`API listening on port ${PORT}`);
|
|
});
|
|
|