2.0.0-rc.7

This commit is contained in:
Tobe O 2019-04-20 12:22:52 -04:00
parent 0bb19fe7bc
commit 5e1004f7a8
2 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,7 @@
# 2.0.0-rc.7
* `AnonymousService` can override `readData`.
* `Service.map` now overrides `readData`.
* `HookedService.readData` forwards to `inner`.
# 2.0.0-rc.6
* Make `redirect` and `download` methods asynchronous.

View file

@ -48,6 +48,10 @@ class HookedService<Id, Data, T extends Service<Id, Data>>
if (inner.app != null) this.app = inner.app;
}
@override
FutureOr<Data> Function(RequestContext, ResponseContext) get readData =>
inner.readData;
RequestContext _getRequest(Map params) {
if (params == null) return null;
return params['__requestctx'] as RequestContext;