Skip to content

Commit 9836105

Browse files
committed
Copilot third commit
1 parent 1a728de commit 9836105

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

comments.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Create web server
2+
const express = require('express');
3+
const app = express();
4+
const port = 3000;
5+
6+
// Create a route
7+
app.get('/comments', (req, res) => {
8+
res.send('This is a list of comments');
9+
});
10+
11+
// Start the server
12+
app.listen(port, () => {
13+
console.log(`Server is running on http://localhost:${port}`);
14+
});

0 commit comments

Comments
 (0)