TODO: conver to this to sprints
- instantiate manager instances { configs, plugins, https, services }
- run managers "init"
- config manager - load configs
- plugin manager - load plugins
- http manager - init http server (don't start)
- service manager - init services
- run manager "postInit" 4) service manager - postInit services
- start http server 3) http framework - start
all route defaults [ ] authRequired [ ] pipeline order [ ] ...
service/pipeline middleware management push to end push to top insert after X
ES6 base classes for: [ ] services [ ] controllers [ ] models [ ] service/pipeline middleware [ ] hyper middleware [ ] templates engines (ejs, handlebars) [ ] plugin manager (yanpm)
hyper.use(...) // add hyper middleware // default: // service manager // plugin manager // config manager // http framework // micro service communication bus (default: direct http) hyper.services.use(...) // add hyper service engine middleware
make services engine a middleware for hyper
restructure of route config? { authRequired: true, api: { route: "/api/photos", controller: "photos", method: { get: "index" } } }
route shortcuts? [ ] handler -> method: { get: ... }