Ju99ernaut / grapesjs-template-manager

Template and page manager for grapesjs
MIT License
82 stars 36 forks source link

Storage with rest api #41

Open RedPandore opened 1 year ago

RedPandore commented 1 year ago

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 1 year ago

I have the same problem, any updates from author @Ju99ernaut ?