-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixes an Issue where the API defined in the app.api wouldn't overwrite a spool.api namespace conflict. - Fixes an Issue where spool.api was not being properly merged within a namespace conflict.
- Loading branch information
1 parent
524a256
commit a7d33f6
Showing
7 changed files
with
247 additions
and
31 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,43 @@ | ||
const Spool = require('../../dist/common').Spool | ||
const Controller = require('../../dist/common').FabrixController | ||
|
||
module.exports = class Testspool4 extends Spool { | ||
constructor (app) { | ||
super(app, { | ||
pkg: { | ||
name: 'spool-test4' | ||
}, | ||
config: { | ||
test: { | ||
val: 0, | ||
otherval: 1 | ||
} | ||
}, | ||
api: { | ||
controllers: { | ||
TestController: class TestController extends Controller { | ||
foo() { | ||
return 'barf' | ||
} | ||
}, | ||
Test2Controller: class Test2Controller extends Controller { | ||
foo() { | ||
return 'barf' | ||
} | ||
kaz() { | ||
return 'baf' | ||
} | ||
}, | ||
Test4Controller: class Test4Controller extends Controller { | ||
foo() { | ||
return 'barf' | ||
} | ||
kaz() { | ||
return 'baf' | ||
} | ||
} | ||
} | ||
} | ||
}) | ||
} | ||
} |