tsoa setup

This commit is contained in:
tw-blue
2025-11-01 19:49:12 +01:00
parent 3bbd73d625
commit 9f1e30e6fa
12 changed files with 982 additions and 15 deletions
+5 -3
View File
@@ -1,11 +1,13 @@
import express from 'express';
import { RegisterRoutes } from './generated/routes.js';
const app = express();
const port = 3000;
app.get('/', (_, res) => {
res.send('Hello World!');
});
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
RegisterRoutes(app);
app.listen(port, () => {
console.log(`Server is running at http://localhost:${port}`);