Skip to content

Commit

Permalink
chore: move all adapter files to a dir
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Jul 31, 2020
1 parent b1b6341 commit 556bdff
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions plugins.js → adapter/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ const nconf = require('nconf')

module.exports = [
// MiddleWares
['requestId', require('./src/middlewares/requestId')()],
['countRequests', require('./src/middlewares/countRequest')()],
['responseHandler', require('./src/middlewares/responseHandler')()],
['requestId', require('../src/middlewares/requestId')()],
['countRequests', require('../src/middlewares/countRequest')()],
['responseHandler', require('../src/middlewares/responseHandler')()],

// Mail Error
['MailError', require('./src/middlewares/MailError')()],
['MailError', require('../src/middlewares/MailError')()],

// Basic Plugins
['koa-helmet', require('koa-helmet')()],
Expand All @@ -33,5 +33,5 @@ module.exports = [
threshold: 2048,
flush: require('zlib').Z_SYNC_FLUSH
})],
['logger', require('./src/logger')()]
['logger', require('../src/logger')()]
]
4 changes: 2 additions & 2 deletions processes.js → adapter/processes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
const path = require('path')
const winston = require('winston')
const colors = require('colors')
const AB = require('./src/extensions/sentencesABSwitcher')
const AB = require('../src/extensions/sentencesABSwitcher')

module.exports = {
processes: [
{
path: path.join(__dirname, './src/cron.js'), // The absolute path of the process file
path: path.join(__dirname, '../src/cron.js'), // The absolute path of the process file
name: 'cronJob', // The name of the process module
messageListener: (message, { event, moduleName }) => {
// emit msg to global process route
Expand Down
File renamed without changes.

0 comments on commit 556bdff

Please sign in to comment.