Moved common helper to more logical location

react_convert
Mark Moffat 2018-02-05 19:20:30 +01:00
parent 4c5d44363d
commit 85faeb9168
11 changed files with 10 additions and 10 deletions

2
app.js
View File

@ -10,7 +10,7 @@ const MongoClient = require('mongodb').MongoClient;
const numeral = require('numeral');
const helmet = require('helmet');
const colors = require('colors');
const common = require('./routes/common');
const common = require('./lib/common');
const mongodbUri = require('mongodb-uri');
let handlebars = require('express-handlebars');

View File

@ -1,5 +1,5 @@
const express = require('express');
const common = require('./common');
const common = require('../lib/common');
const escape = require('html-entities').AllHtmlEntities;
const colors = require('colors');
const bcrypt = require('bcryptjs');

View File

@ -3,7 +3,7 @@ const router = express.Router();
const colors = require('colors');
const randtoken = require('rand-token');
const bcrypt = require('bcryptjs');
const common = require('./common');
const common = require('../lib/common');
// insert a customer
router.post('/customer/create', (req, res) => {

View File

@ -3,7 +3,7 @@ const router = express.Router();
const colors = require('colors');
const async = require('async');
const _ = require('lodash');
const common = require('./common');
const common = require('../lib/common');
// These is the customer facing routes

View File

@ -1,5 +1,5 @@
const express = require('express');
const common = require('./common');
const common = require('../lib/common');
const router = express.Router();
// Show orders

View File

@ -1,7 +1,7 @@
const express = require('express');
const axios = require('axios');
const stripBom = require('strip-bom');
const common = require('../common');
const common = require('../../lib/common');
const router = express.Router();
// The homepage of the site

View File

@ -1,5 +1,5 @@
let express = require('express');
let common = require('../common');
let common = require('../../lib/common');
let paypal = require('paypal-rest-sdk');
let router = express.Router();

View File

@ -1,5 +1,5 @@
let express = require('express');
let common = require('../common');
let common = require('../../lib/common');
let numeral = require('numeral');
let stripe = require('stripe')(common.getPaymentConfig().secretKey);
let router = express.Router();

View File

@ -1,5 +1,5 @@
const express = require('express');
const common = require('./common');
const common = require('../lib/common');
const colors = require('colors');
const rimraf = require('rimraf');
const fs = require('fs');

View File

@ -1,5 +1,5 @@
const express = require('express');
const common = require('./common');
const common = require('../lib/common');
const colors = require('colors');
const bcrypt = require('bcryptjs');
const router = express.Router();