-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds the hability to define custom routes through the faux object (#14)
- Loading branch information
1 parent
fb92aef
commit 7d18a50
Showing
4 changed files
with
10 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
const Config = require('./config'); | ||
const { Start, Register } = require('./main'); | ||
const { Start, Register, App } = require('./main'); | ||
|
||
module.exports = { | ||
Start, | ||
Config, | ||
Register, | ||
App, | ||
}; |
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
const { Config, Start, Register } = require('./Faux'); | ||
const { Config, Start, Register, App } = require('./Faux'); | ||
|
||
/** Base faux wrapper */ | ||
const faux = { | ||
config: Config, | ||
register: Register, | ||
start: Start, | ||
route: App, | ||
} | ||
|
||
module.exports = faux; |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
const Start = require('./Start'); | ||
const Register = require('./Register'); | ||
const App = require('../server'); | ||
|
||
module.exports = { Start, Register }; | ||
module.exports = { App, Start, Register }; |
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