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

React side needs a route file to collect all API and navigation routes #37

Open
lbkchen opened this issue Feb 9, 2018 · 0 comments
Open

Comments

@lbkchen
Copy link

lbkchen commented Feb 9, 2018

Basically you'd just want a file on the front end that collects all the URL routes that you need to connect with Rails so that if you use a route more than once, all the changes can be dealt with in one place.

Here are a couple examples:

https://github.com/calblueprint/veterans360-mobile/blob/master/src/helpers/routes/routes.js
https://github.com/calblueprint/dream-mobile/blob/master/config/routes.js
https://github.com/calblueprint/ros-student/blob/master/app/assets/javascripts/shared/routes.js

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