isaaccormack / Tabber

Automatically tab guitar licks played into your computer's microphone
https://tabber.ca
1 stars 1 forks source link

clean up redundant code in controllers / add generic error handling middleware #78

Closed isaaccormack closed 3 years ago

isaaccormack commented 3 years ago

controllers endpoints should simply throw exceptions ie. 403 forbidden exception, which is caught by middleware at the end which returns the generic error response for the exception, instead of manually doing this in every endpoint

isaaccormack commented 3 years ago

this was more or less cleared up by #83 which removed a lot of redundancy in controllers