2.0.0-rc.7
This commit is contained in:
parent
0bb19fe7bc
commit
5e1004f7a8
2 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
# 2.0.0-rc.7
|
# 2.0.0-rc.7
|
||||||
* `AnonymousService` can override `readData`.
|
* `AnonymousService` can override `readData`.
|
||||||
* `Service.map` now overrides `readData`.
|
* `Service.map` now overrides `readData`.
|
||||||
|
* `HookedService.readData` forwards to `inner`.
|
||||||
|
|
||||||
# 2.0.0-rc.6
|
# 2.0.0-rc.6
|
||||||
* Make `redirect` and `download` methods asynchronous.
|
* Make `redirect` and `download` methods asynchronous.
|
||||||
|
|
|
@ -48,6 +48,10 @@ class HookedService<Id, Data, T extends Service<Id, Data>>
|
||||||
if (inner.app != null) this.app = inner.app;
|
if (inner.app != null) this.app = inner.app;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
FutureOr<Data> Function(RequestContext, ResponseContext) get readData =>
|
||||||
|
inner.readData;
|
||||||
|
|
||||||
RequestContext _getRequest(Map params) {
|
RequestContext _getRequest(Map params) {
|
||||||
if (params == null) return null;
|
if (params == null) return null;
|
||||||
return params['__requestctx'] as RequestContext;
|
return params['__requestctx'] as RequestContext;
|
||||||
|
|
Loading…
Reference in a new issue