Let’s carve a path for the REST API
We’ve made a big move in moving everything into packages for the pick-a-gun service. Now we want to use the core
package and use those function to build a REST API.
Design
For this implementation, I want to use Gorilla mux, a tried and true request and router dispatcher. I can build routes easily and more importantly, middleware is easy to plug in(more on that later.)