dcrtime
dcrtime copied to clipboard
Abstract error handling on requests handler functions
As Luke mentioned here: https://github.com/decred/dcrtime/pull/84#discussion_r1021767766.
We are handling erros individually for each route which generates a lot of boilerplate. Ideally we would abstract this behavior to make the code simpler and more readable.