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

It seems readhandler.js can not build some paths combinations #82

Open
G940 opened this issue Jun 13, 2017 · 0 comments
Open

It seems readhandler.js can not build some paths combinations #82

G940 opened this issue Jun 13, 2017 · 0 comments

Comments

@G940
Copy link

G940 commented Jun 13, 2017

Hi there,
I found an error like the following:
If I have the following paths combinations=>
/QItem: post + put
/QItem/search: get
/QItem/popular: get

the code in function read(dir) will not coorrectly build the right handlers object:

        if (stat.isDirectory()) {
               //handlers[key] = read(abspath);    //<= the latter /QItem/xxx seems override the previous /QItem
	  Object.assign(handlers[key], read(abspath)); // <= do we have to change to this kind of objects merging?
        }
    });
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