Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with list API #20

Open
gbgssoftware opened this issue Nov 22, 2023 · 0 comments
Open

problem with list API #20

gbgssoftware opened this issue Nov 22, 2023 · 0 comments

Comments

@gbgssoftware
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant