Skip to content

Instantly share code, notes, and snippets.

@angellandros
Created October 19, 2019 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angellandros/37ce8a34b5b0b6c33cff5d52ab69e741 to your computer and use it in GitHub Desktop.
Save angellandros/37ce8a34b5b0b6c33cff5d52ab69e741 to your computer and use it in GitHub Desktop.
Express.js main files with TSOA generated routes
import * as express from 'express';
import { RegisterRoutes } from './routes/routes'; // here
const app = express();
const port = 3000;
RegisterRoutes(app); // and here
app.listen(port, () => console.log(`Server started listening to port ${port}`));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment