Open ghost opened 8 years ago
Tool generate handlers is getting too complex. It should be split into multiple ones:
generate handlers
scan controllers
.json
handlers
generate routes
routes
generate reverse routes
routes/reverse
Tool
generate handlers
is getting too complex. It should be split into multiple ones:scan controllers
(name TBD) - parses controllers and dependencies, serializes result and saves it as.json
(or some other format that is TBD).generate handlers
- reads generated.json
and creates ahandlers
package.generate routes
- reads generated.json
and createsroutes
package.generate reverse routes
- reads generated.json
and createsroutes/reverse
package.