Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Import controllers
import UserController from './api/user/UserController';
// Import Factories
import ExceptionFactory from './error/ExceptionFactory';
// Import Services
import UserService from './services/UserService';
// Import Repositories
import BaseRepository from './repository/BaseRepository';
import UserRepository from './repository/UserRepository';
let container = awilix.createContainer({
resolutionMode: awilix.ResolutionMode.CLASSIC
});
mongoose.Promise = global.Promise;
mongoose.connect(config.DB.mongodb.nodebaseapp.connection, { useMongoClient: true });
console.log("Initializing Swagger API documentation...");
let swaggerDefinition = {
info: {
title: 'RESTful web services for node/express/es6 starter',
version: '1.0.0',
description: 'Documentation for node/express/es6 starter',
},
host: 'localhost:3001',
basePath: '/v1/',
schemes: ['http'],
consumes: ["application/json"],