git-serverless-new/index.js
2026-03-17 13:24:46 +05:30

18 lines
367 B
JavaScript

const express = require('express');
const app = express();
const PORT = process.env.PORT || 8080;
app.use(express.json());
app.get('/hello', (req, res) => {
res.json({ message: 'Hello from git-serverless!' });
});
app.get('/health', (req, res) => {
res.json({ status: 'ok' });
});
app.listen(PORT, () => {
console.log(`Server running on port ${PORT}`);
});