26 lines
473 B
JavaScript
26 lines
473 B
JavaScript
const express = require('express');
|
|
const app = express();
|
|
const port = 3000; // You can use any available port
|
|
|
|
app.get('/end1', (req, res) => {
|
|
res.send('Hello world1!');
|
|
});
|
|
|
|
app.get('/end2', (req, res) => {
|
|
res.send('Hello world2!');
|
|
});
|
|
|
|
app.get('/end3', (req, res) => {
|
|
res.send('Hello world3!');
|
|
});
|
|
|
|
app.get('/end4', (req, res) => {
|
|
res.send('Hello world3!');
|
|
});
|
|
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Server running at http://localhost:${port}`);
|
|
});
|
|
|