Skip to content

problem with list API #20

Description

@gbgssoftware

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions