Closed KrakenTyio closed 6 years ago
Pokial controller a jeho operationId metoda vrati observable, nech spravy .toPromise() a vrati dalej na spracovanie.
export class GroupsController { getGroups(context: ExegesisContext) { return Observable<any>; } }
trosku pretazit middleware na sposob
export default function koaRx() { return async (ctx: Context, next: () => Promise<any>): Promise<any> => { const data = await next(); if (data instanceof Observable) { return data.toPromise(); } } }
zapis je z https://github.com/mfellner/koa-rx/blob/master/src/index.ts avsak nefunguje s exegesis
WIP: uz to mam cez exegesis plugin poriesene
Pokial controller a jeho operationId metoda vrati observable, nech spravy .toPromise() a vrati dalej na spracovanie.
trosku pretazit middleware na sposob
zapis je z https://github.com/mfellner/koa-rx/blob/master/src/index.ts avsak nefunguje s exegesis