Updates and remove random get route

This commit is contained in:
Logan Hunt 2022-05-05 20:01:22 +01:00
parent 46acd38280
commit 09d685c063
2 changed files with 2 additions and 14 deletions

View File

@ -16,7 +16,7 @@
<p>CBT focuses on modifying dysfunctional behaviors, thoughts, and emotions. In session, we will identify these harmful processes and determine if they are an accurate depiction of reality. If they are not, we will help you use strategies to challenge and overcome them. </p> <p>CBT focuses on modifying dysfunctional behaviors, thoughts, and emotions. In session, we will identify these harmful processes and determine if they are an accurate depiction of reality. If they are not, we will help you use strategies to challenge and overcome them. </p>
<h2>Solution Focused Therapy</h2> <h2>Solution Focused Therapy</h2>
<p>We believe the client is the expert of their own story. If you are coming to see me, its possible that youre overwhelmed with your present situation. We will use the past to provide understanding and reflection, but we will mostly focus on the present and future. We will empower you to create new perspective, possibilities, and plans to actualize your new story.</p> <p>We believe the client is the expert of their own story. If you are coming to see us, its possible that youre overwhelmed with your present situation. We will use the past to provide understanding and reflection, but we will mostly focus on the present and future. We will empower you to create new perspective, possibilities, and plans to actualize your new story.</p>
<h2>Narrative Therapy</h2> <h2>Narrative Therapy</h2>
<p>Sometimes we become our problems. We start to identify as “a depressed person” or “an anxious person”. We can help you learn to see your issues as something you have, but not something that defines you. We will teach you to put some distance between yourself and your issues and empower you to live your life so that you can work on finding out who you really are and what you are capable of.</p> <p>Sometimes we become our problems. We start to identify as “a depressed person” or “an anxious person”. We can help you learn to see your issues as something you have, but not something that defines you. We will teach you to put some distance between yourself and your issues and empower you to live your life so that you can work on finding out who you really are and what you are capable of.</p>

View File

@ -2,17 +2,6 @@ import 'dotenv/config';
import sgMail from '@sendgrid/mail'; import sgMail from '@sendgrid/mail';
sgMail.setApiKey(process.env.SENDGRID_API_KEY); sgMail.setApiKey(process.env.SENDGRID_API_KEY);
export async function get() {
const items = [
{a: 1, b: 2},
{a: 3, b: 4},
{a: 5, b: 6},
];
return {
body: items
};
}
export async function post({ request }) { export async function post({ request }) {
const body = await request.json(); const body = await request.json();
const { HCAPTCHA_SECRET, FORM_FROM_EMAIL, FORM_TO_EMAIL } = process.env; const { HCAPTCHA_SECRET, FORM_FROM_EMAIL, FORM_TO_EMAIL } = process.env;
@ -44,8 +33,7 @@ export async function post({ request }) {
`, `,
}; };
const messageSent = await sgMail const messageSent = await sgMail.send(msg)
.send(msg)
.then(() => true) .then(() => true)
.catch((error) => { .catch((error) => {
console.error(error); console.error(error);