-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3fd9677
commit e1c8035
Showing
3 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* factory of express() | ||
* | ||
* @param {*} env environment config like `process.env` | ||
*/ | ||
const express = env => { | ||
const $express = require(`./dist/express`); | ||
return $express; | ||
}; | ||
|
||
/** | ||
* factory of handler() | ||
* | ||
* @param {*} env environment config like `process.env` | ||
*/ | ||
const handler = env => { | ||
const $handler = require('./handler'); | ||
return $handler; | ||
}; | ||
|
||
//! export default | ||
module.exports = { express, handler }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters