Correcting data provider path
This commit is contained in:
1 parent
e01430f60e
commit
6c3f6c8d03
1 file changed
+1
-1
@@ -96,7 +96,7 @@ export const dataProvider: DataProvider = {
|
||||
};
|
||||
},
|
||||
create: async ({ resource, variables }) => {
|
||||
const response = await fetch(`${API_URL}/${resource}`, {
|
||||
const response = await fetch(`${API_URL}/${resource}/`, {
|
||||
method: "POST",
|
||||
body: JSON.stringify(variables),
|
||||
headers: {
|
||||
|
||||
Reference in new issue
Block a user