Add report stats to the `wc-api` spec.

This commit is contained in:
Jeff Stieler 2018-12-03 20:01:49 -07:00
parent cfd4462941
commit 0d6cd1a776
1 changed files with 3 additions and 0 deletions

View File

@ -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 ),
];
},
},