Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add products route #3
This PR adds a products route:
On a design note, I moved the getProducts and getProduct middleware out of ProductController. As I was working, it felt strange to have instance methods inside the ProductController making static calls. I'll submit another PR to refactor the PingController and cleanup if there are no issues with this design change.
Please see my suggestion - I think you can refactor stuff out of controller and into a