deploy 2026-02-27T21:52:28.996Z
This commit is contained in:
20
index.js
Normal file
20
index.js
Normal file
@@ -0,0 +1,20 @@
|
||||
const express = require("express");
|
||||
const app = express();
|
||||
const PORT = process.env.PORT || 3000;
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
res.json({
|
||||
app: "test-app",
|
||||
status: "running",
|
||||
time: new Date().toISOString(),
|
||||
env: process.env.NODE_ENV || "development",
|
||||
});
|
||||
});
|
||||
|
||||
app.get("/health", (req, res) => {
|
||||
res.json({ ok: true });
|
||||
});
|
||||
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Server running on port ${PORT}`);
|
||||
});
|
||||
Reference in New Issue
Block a user