Create a new file on current path.
fetch('/codetmp/files', { method: 'POST', body: JSON.stringify({ name:'app.data', content: 'Hello world', }), });
You can create file on a specific path by specifying path key on request body.
path
fetch('/codetmp/files', { method: 'POST', body: JSON.stringify({ name:'app.data', content: 'Hello world', path: 'data/', }), });
There was an error while loading. Please reload this page.