Skip to content
Snippets Groups Projects
Commit 02feb975 authored by Ramiro's avatar Ramiro
Browse files

Users sync

parent adf86fad
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ import cors from 'cors';
import swaggerJsDoc, { Options } from 'swagger-jsdoc';
import swaggerUi from 'swagger-ui-express';
import Routes from './routes';
import { User } from './models/users.model';
const app: Application = express();
const PORT = process.env.PORT || 3000;
......@@ -42,6 +43,8 @@ app.use(express.raw({
limit: '50mb',
}));
User.sync();
app.use(Routes);
app.listen(PORT, (): void => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment