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

fixes #316 update resource and handler to support SPA from handler.yml #318

Merged
merged 2 commits into from
Nov 4, 2018

Conversation

stevehu
Copy link
Contributor

@stevehu stevehu commented Nov 2, 2018

No description provided.

@stevehu
Copy link
Contributor Author

stevehu commented Nov 2, 2018

For detailed configuration in the light-router, please take a look at this checkin. networknt/light-config-test#71

@GavinChenYan
Copy link
Contributor

Looks good. Thanks

Copy link
Contributor

@ddobrin ddobrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is fine.
My only question mark is if it won't users to use the idea to just define default as a catch-all

@stevehu
Copy link
Contributor Author

stevehu commented Nov 3, 2018

The current PathHandler will return 404 error code only if there is no resource found for the path specified. I am not sure if we should customize it to return a status instead with an additional description like a real API response.

@stevehu stevehu merged commit 34763ed into develop Nov 4, 2018
@stevehu stevehu deleted the issue316 branch November 4, 2018 02:18
younggwon1 pushed a commit to younggwon1/light-4j that referenced this pull request Feb 10, 2024
fixes networknt#316 update resource and handler to support SPA from handler.yml
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

Successfully merging this pull request may close these issues.

3 participants