api.jdf2.org/dist/start.js
2025-01-26 00:58:55 -06:00

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}`);
});