This commit is contained in:
fvjr156
2026-05-31 18:28:15 +08:00
parent b7dcac4327
commit e6172ebf4f
9 changed files with 1330 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import express from 'express';
const app = express();
const PORT = process.env.PORT || 3000;
app.use(express.json());
app.get('/health', (req, res) => {
res.json({ status: 'ok', timestamp: new Date().toISOString() });
});
app.get('/', (req, res) => {
res.json({ message: 'Welcome to the demo Express app!', version: '1.0.0' });
});
app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
});