Add report stats to the `wc-api` spec.
This commit is contained in:
parent
cfd4462941
commit
0d6cd1a776
|
@ -5,18 +5,21 @@
|
|||
*/
|
||||
import notes from './notes';
|
||||
import orders from './orders';
|
||||
import reportStats from './reports/stats';
|
||||
|
||||
function createWcApiSpec() {
|
||||
return {
|
||||
selectors: {
|
||||
...notes.selectors,
|
||||
...orders.selectors,
|
||||
...reportStats.selectors,
|
||||
},
|
||||
operations: {
|
||||
read( resourceNames ) {
|
||||
return [
|
||||
...notes.operations.read( resourceNames ),
|
||||
...orders.operations.read( resourceNames ),
|
||||
...reportStats.operations.read( resourceNames ),
|
||||
];
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue