Closed isaaccormack closed 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
this was more or less cleared up by #83 which removed a lot of redundancy in controllers
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