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

about the routing path --> Filesytem #78

Closed
Bromoxid opened this issue Oct 6, 2014 · 3 comments
Closed

about the routing path --> Filesytem #78

Bromoxid opened this issue Oct 6, 2014 · 3 comments

Comments

@Bromoxid
Copy link

Bromoxid commented Oct 6, 2014

Hi guys,
can you tell me how I can use routes like : '/Main/sub' ?
I can route to /Main with exports.getIndex() at Filesystem back/resources/Main/getMain.js ,
but whats with /sub? (he dosent find it at back/resources/Main/sub/getsub.js)

ideas?

@Bromoxid
Copy link
Author

Bromoxid commented Oct 6, 2014

Ok I have found something at the synth-api handlersParser.js
this sniped:

for (var i = 0; i < pathArr.length; i++) {
path += pathArr[i];
if (i < pathArr.length - 1) {
path += '/';//'/:' + pathArr[i] + 'Id/';
}
}

@JonAbrams
Copy link
Owner

You can maybe try adding a exports.getSub = function () {} to back/resources/Main/getMain.js.

@Bromoxid
Copy link
Author

Bromoxid commented Oct 9, 2014

Noo I had a bad typo -.- , the changes at handlersParser.js works fine ^^

@Bromoxid Bromoxid closed this as completed Oct 9, 2014
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

2 participants