Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
docs: Add media OPTIONS endpoint to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SofiaSousa committed Nov 21, 2018
1 parent d22f01e commit 9610dee
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,20 @@ Here is the WordPress API documentation for [Media](https://developer.wordpress.
}
```

The editor also requests for `wp/v2/media` OPTIONS:

```js
{
headers: {
get: value => {
if (value === 'allow') {
return [ 'POST' ];
}
},
},
}
```

[↑ Go up to Table of contents](#table-of-contents)

#### Blocks
Expand Down

0 comments on commit 9610dee

Please sign in to comment.