hiyaryan / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling distorted thinking and finding alternative modes of thought (i.e. reframing) while cognitive distortions are occurring. The CDJ does that work for you. -- The CDJ is in beta testing!!
https://thecdj.app
3 stars 0 forks source link

Backend refactor. #7

Closed hiyaryan closed 10 months ago

hiyaryan commented 10 months ago

Update routes and controllers. Routes are now more readable and should only accept middleware. Controllers contains all the business logic.

A new ExpressError class is now passed to the error handler.

Add JSDoc to start official documentation.