github-actions-demo/index.js

12 lines
209 B
JavaScript
Raw Permalink Normal View History

2020-04-25 07:02:34 +08:00
const express = require('express');
2019-01-15 15:40:13 +08:00
2020-04-25 07:02:34 +08:00
const app = express();
2019-01-15 15:40:13 +08:00
2020-04-25 07:02:34 +08:00
app.get('/', (req, res) => {
res.set('Content-Type', 'text/plain');
res.send('Hello World');
});
2019-01-15 15:40:13 +08:00
2020-04-25 07:02:34 +08:00
module.exports = app.listen(8080, () => {
});