routes.js

var http = require('http');
var nodemailer = require('nodemailer');
var commonRoutes = require('./common/commonRoutes');
var loginRoutes = require('./login/loginRoutes');
var downloadRoutes = require('./download/downloadRoutes');
var resumeRoutes = require('./resume/resumeRoutes');
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);

    // download routes
    downloadRoutes(app, routeOptions);

    // resume routes
    resumeRoutes(app, routeOptions);
}

module.exports = routes;