react-filemanager
react-filemanager copied to clipboard
problem with list API
Hi, in react code for list API call, no JSON is used
export function getFileContent(path) {
return fetch(config.url_get_content + '?path=' + (encodeURIComponent(path) || '/'));
};
While in Angular json is used
export function getFileContent(path) {
return fetch(config.url_get_content + '?path=' + (encodeURIComponent(path) || '/'));
};
In django this function is used:
def list_(request):
return HttpResponse(json.dumps(fm.list(json.loads(request.body.decode('utf-8')))))
which accepts json.
I'm using it as branch master. Do I have to use another branch?
Thank you