Just an idea that would make my life much easier. Let the api to inject their dependencies. (additionally would be possible to use tools like electrolyte)
Pass dependencies to create by config object, example:
Coverage increased (+0.006%) to 96.321% when pulling c5dfe76f40d8ffba825844a7efd2ab8a07710441 on alikh31:master into 07a706f461833ca1642981a61c8ce72e6a8a260b on theganyo:master.
Coverage increased (+0.01%) to 96.327% when pulling c0092aa68a6c5492897ec10a3b6b38cf564974b8 on alikh31:master into 07a706f461833ca1642981a61c8ce72e6a8a260b on theganyo:master.
Coverage increased (+0.01%) to 96.327% when pulling b931ae4c43f6203a48a0e1a55de4110bb5b32e5c on alikh31:master into 07a706f461833ca1642981a61c8ce72e6a8a260b on theganyo:master.
Coverage increased (+0.01%) to 96.327% when pulling dca7c1fea4be6858dddf3080f56c0e398a0dee2d on alikh31:master into 07a706f461833ca1642981a61c8ce72e6a8a260b on theganyo:master.
Coverage increased (+0.01%) to 96.327% when pulling dca7c1fea4be6858dddf3080f56c0e398a0dee2d on alikh31:master into 07a706f461833ca1642981a61c8ce72e6a8a260b on theganyo:master.
Coverage increased (+0.01%) to 96.327% when pulling dca7c1fea4be6858dddf3080f56c0e398a0dee2d on alikh31:master into 07a706f461833ca1642981a61c8ce72e6a8a260b on theganyo:master.
Just an idea that would make my life much easier. Let the api to inject their dependencies. (additionally would be possible to use tools like electrolyte)
Pass dependencies to
create
by config object, example:The controlle's module exports will look like something like: