tsoa setup
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user