cognovi-ai / 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

Implement CRUD operations for entries. #3

Closed hiyaryan closed 10 months ago

hiyaryan commented 10 months ago

This PR sets up the first full CRUD routes for entries and the overall structure of the backend. It also updates some styles but that will very likely change again. Primarily this PR creates the following,

Each HTTP method works along a specific journal. Currently the journal is hard coded. In theory, the only journal a user can see is theirs. This will require authorization by comparing the users account who is currently authenticated to the the journal id associated with their account.