1 | export default function (horse) {
|
2 | return class App extends horse {
|
3 | get (klass) {
|
4 | return async function buildController (ctx, next) {
|
5 | // TODO why do these have to be lets? what's going on. Something is
|
6 | // hanging on to a reference somewhere.
|
7 | let controller = new klass(ctx, this);
|
8 | await controller.get(ctx, next);
|
9 | }.bind(this);
|
10 | }
|
11 | };
|
12 | }
|