kohlbrr / threads

One badass clothing website - specializing in tee shirts
0 stars 2 forks source link

Deconstruct parameters in put routes (API) #41

Closed kohlbrr closed 7 years ago

kohlbrr commented 7 years ago

There are multiple instances of put routes where it looks like:

.then(something => res.send(something[1]))

This can be made cleaner by deconstructing the array passed in.