Moved common helper to more logical location
parent
4c5d44363d
commit
85faeb9168
2
app.js
2
app.js
|
@ -10,7 +10,7 @@ const MongoClient = require('mongodb').MongoClient;
|
||||||
const numeral = require('numeral');
|
const numeral = require('numeral');
|
||||||
const helmet = require('helmet');
|
const helmet = require('helmet');
|
||||||
const colors = require('colors');
|
const colors = require('colors');
|
||||||
const common = require('./routes/common');
|
const common = require('./lib/common');
|
||||||
const mongodbUri = require('mongodb-uri');
|
const mongodbUri = require('mongodb-uri');
|
||||||
|
|
||||||
let handlebars = require('express-handlebars');
|
let handlebars = require('express-handlebars');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
const common = require('./common');
|
const common = require('../lib/common');
|
||||||
const escape = require('html-entities').AllHtmlEntities;
|
const escape = require('html-entities').AllHtmlEntities;
|
||||||
const colors = require('colors');
|
const colors = require('colors');
|
||||||
const bcrypt = require('bcryptjs');
|
const bcrypt = require('bcryptjs');
|
||||||
|
|
|
@ -3,7 +3,7 @@ const router = express.Router();
|
||||||
const colors = require('colors');
|
const colors = require('colors');
|
||||||
const randtoken = require('rand-token');
|
const randtoken = require('rand-token');
|
||||||
const bcrypt = require('bcryptjs');
|
const bcrypt = require('bcryptjs');
|
||||||
const common = require('./common');
|
const common = require('../lib/common');
|
||||||
|
|
||||||
// insert a customer
|
// insert a customer
|
||||||
router.post('/customer/create', (req, res) => {
|
router.post('/customer/create', (req, res) => {
|
||||||
|
|
|
@ -3,7 +3,7 @@ const router = express.Router();
|
||||||
const colors = require('colors');
|
const colors = require('colors');
|
||||||
const async = require('async');
|
const async = require('async');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const common = require('./common');
|
const common = require('../lib/common');
|
||||||
|
|
||||||
// These is the customer facing routes
|
// These is the customer facing routes
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
const common = require('./common');
|
const common = require('../lib/common');
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
|
|
||||||
// Show orders
|
// Show orders
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
const stripBom = require('strip-bom');
|
const stripBom = require('strip-bom');
|
||||||
const common = require('../common');
|
const common = require('../../lib/common');
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
|
|
||||||
// The homepage of the site
|
// The homepage of the site
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
let express = require('express');
|
let express = require('express');
|
||||||
let common = require('../common');
|
let common = require('../../lib/common');
|
||||||
let paypal = require('paypal-rest-sdk');
|
let paypal = require('paypal-rest-sdk');
|
||||||
let router = express.Router();
|
let router = express.Router();
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
let express = require('express');
|
let express = require('express');
|
||||||
let common = require('../common');
|
let common = require('../../lib/common');
|
||||||
let numeral = require('numeral');
|
let numeral = require('numeral');
|
||||||
let stripe = require('stripe')(common.getPaymentConfig().secretKey);
|
let stripe = require('stripe')(common.getPaymentConfig().secretKey);
|
||||||
let router = express.Router();
|
let router = express.Router();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
const common = require('./common');
|
const common = require('../lib/common');
|
||||||
const colors = require('colors');
|
const colors = require('colors');
|
||||||
const rimraf = require('rimraf');
|
const rimraf = require('rimraf');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
const common = require('./common');
|
const common = require('../lib/common');
|
||||||
const colors = require('colors');
|
const colors = require('colors');
|
||||||
const bcrypt = require('bcryptjs');
|
const bcrypt = require('bcryptjs');
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
|
|
Loading…
Reference in New Issue