subman-backend-ts/src/index.mts

13 lines
238 B
TypeScript
Raw Normal View History

2024-06-07 10:27:36 +00:00
import express from 'express';
const app = express();
const port = 3000;
app.get('/', (req, res) => {
res.send('Hello World!');
});
app.listen(port, () => {
return console.log(`Express is listening at http://localhost:${port}`);
});