dcrtime icon indicating copy to clipboard operation
dcrtime copied to clipboard

Abstract error handling on requests handler functions

Open tiagoalvesdulce opened this issue 2 years ago • 0 comments

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.

tiagoalvesdulce avatar Nov 17 '22 15:11 tiagoalvesdulce