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!!
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,
POST to create an entry.
GET to retrieve entries.
PUT to update an entry.
DELETE to delete an entry.
Set up basic routing in the application for the entry endpoints.
Create controllers for entry management.
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.
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.