routes.js

var http = require('http');
var nodemailer = require('nodemailer');
var commonRoutes = require('./common/commonRoutes');
var loginRoutes = require('./login/loginRoutes');
var dashboardRoutes = require('./modules/dashboard/dashboardRoutes');
var dbCollections = require('../config/db/dbCollections');

function routes(app, routeOptions) {
	// unprotected api's 	------------------------------------------------------------
	commonRoutes(app, routeOptions);

	// NOTE: All api's from here require authenticatoin
	// login routes 		------------------------------------------------------------
	loginRoutes(app, routeOptions);

    //  dashboard api's 	------------------------------------------------------------
    dashboardRoutes(app, routeOptions);
};
module.exports = routes;