-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change storage manager request method to PATCH #1885
Comments
👍 Anyway, the best is to provide ability to let you decide which method should be used while sending "update" requests. |
I agree... Probably I'll add this option (storageManager module) in the next release: storageManager: {
...
// Pass custom options to fetch API (remote storage)
// You can pass a simple object: { someOption: 'someValue' }
// or a function wich returns and object to add:
// currentOpts => {
// return currentOpts.method === 'post' ? { method: 'patch' } : {};
// }
fetchOptions: '',
}, So, in this case, you'll be able to distinguish the type of the call (store/load) by |
Hi @artf ! I just started using GrapesJS (awesome plug-in btw, thank you so much!) and I'm wondering whether this has been added or not? |
Hey @artf does the storage manager support changing the request method from post to patch?
I did not see that anywehre in the docs.
The text was updated successfully, but these errors were encountered: