-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Expanded nested calls #82
Conversation
This looks awesome. @typicode, what are your thoughts? |
Hmm, honestly it's a hard choice and I'm not sure about it. @isaacrg if you need it, support can easily be added using the project as a module and middlewares. I've stumbled on projects like express-rewrite: // Would rewrite /categories/1/posts/1/comments to /posts/1/comments
server.get('/:a/:b/:parent/:parentId/:resource', rewriter.rewrite('/$3/$4/$5') There's also express-redirect that seems to be an easy solution too. |
@typicode Awesome - thanks for the find. I entirely understand if you don't want to PR this stuff, I get that you may well want to keep the library simple. |
Well let's keep it simple then :) Closing it. |
@isaacrg Here's the published result: https://github.com/therebelrobot/json-mock |
@therebelrobot awesome, that what I want !! I will try it now |
@therebelrobot Awesome work |
Refer: #72 (comment)
@isaacrg > Added as a PR because of #72 (comment)
I am currently sourcing https://github.com/therebelrobot/json-server-nested in my work project, it has everything here except the most recent upstream merge for status code changes.