19 lines
399 B
JavaScript
19 lines
399 B
JavaScript
console.log("bob test")
|
|
|
|
const express = require('express');
|
|
const app = express();
|
|
const port = 3000;
|
|
|
|
// Define a simple route
|
|
app.get('/', (req, res) => {
|
|
res.send('Hello World from Express testing!');
|
|
});
|
|
|
|
app.get('/*', (req, res) => {
|
|
res.send('Hello World from '+req.originalUrl+'!');
|
|
});
|
|
|
|
// Start the server
|
|
app.listen(port, () => {
|
|
console.log(`Server listening on port ${port}`);
|
|
}); |