Skip to content

Commit

Permalink
Fix documentatoin about extending a dataProvider
Browse files Browse the repository at this point in the history
Closes #4340
  • Loading branch information
fzaninotto committed Jan 22, 2020
1 parent def126f commit 97c161a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/DataProviders.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ As Data Providers are just objects, you can extend them with custom logic for a
For instance, the following Data Provider extends the `ra-data-simple-rest` provider, and adds image upload support for the `update('posts')` call (react-admin offers an `<ImageInput />` component that allows image upload).

```js
import dataProvider from 'ra-data-simple-rest';
import simpleRestProvider from 'ra-data-simple-rest';

const dataProvider = simpleRestProvider('http://path.to.my.api/');

const myDataProvider = {
...dataProvider,
Expand Down

0 comments on commit 97c161a

Please sign in to comment.