Storage with rest api
RedPandore opened this issue · 1 comments
RedPandore commented
Hello,
I configured the backup on: "rest-api". I added the requested urls. ( urlStore and urlLoad ).
My problem is that the request is not made on the correct routes. GrapeJs adds /uuidv4 each time.
(Example : http://127.0.0.1:8000/grapejs/load/uuidv4) <- Why add uuid for load all ?
Do you have any idea where the problem could come from?
I attach the code.
< GrapesjsReact
id="grapesjs-react"
pageManager={true}
storageManager={{
type: 'rest-api',
options: {
remote :{
urlStore: 'http://127.0.0.1:8000/grapejs/save',
urlLoad: 'http://127.0.0.1:8000/grapejs/load',
}
},
autosave: true,
autoload: true,
stepsBeforeSave: 1,
}}
plugins={[projectManager, webpage, basicBlock]}
/>
DmitriySemenov91 commented
I have the same problem, any updates from author @Ju99ernaut ?