Skip to content

Commit

Permalink
Update README.md (#9738)
Browse files Browse the repository at this point in the history
Update @wordpress/api-fetch README.md
  • Loading branch information
jhalvorson authored and gziolo committed Sep 25, 2018
1 parent 973d8c9 commit 27e6f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-fetch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ _This package assumes that your code will run in an **ES2015+** environment. If
```js
import apiFetch from '@wordpress/api-fetch';

apiFetch( { path: '/wp/v2/posts' } ).then( posts => {
apiFetch( { path: '/wp-json/wp/v2/posts' } ).then( posts => {
console.log( posts );
} );
```
Expand Down

0 comments on commit 27e6f1e

Please sign in to comment.