16 lines
376 B
JavaScript
16 lines
376 B
JavaScript
const express = require('express');
|
|
const app = express();
|
|
const PORT = process.env.PORT || 3000;
|
|
|
|
app.get('/', (req, res) => {
|
|
res.json({ message: 'Hello World from Gitea CI/CD!', timestamp: new Date().toISOString() });
|
|
});
|
|
|
|
app.get('/health', (req, res) => {
|
|
res.json({ status: 'ok' });
|
|
});
|
|
|
|
app.listen(PORT, () => {
|
|
console.log(`Server running on port ${PORT}`);
|
|
});
|