From 09d685c0638adf4c62ca63ce8384d2816f3a05c8 Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Thu, 5 May 2022 20:01:22 +0100 Subject: [PATCH] Updates and remove random get route --- src/routes/approach/index.svelte | 2 +- src/routes/contact/submit.js | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/routes/approach/index.svelte b/src/routes/approach/index.svelte index f7c6fbe..22819d3 100644 --- a/src/routes/approach/index.svelte +++ b/src/routes/approach/index.svelte @@ -16,7 +16,7 @@

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.

Solution Focused Therapy

-

We believe the client is the expert of their own story. If you are coming to see me, it’s possible that you’re 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.

+

We believe the client is the expert of their own story. If you are coming to see us, it’s possible that you’re 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.

Narrative Therapy

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.

diff --git a/src/routes/contact/submit.js b/src/routes/contact/submit.js index cf0d65c..fd78dfc 100644 --- a/src/routes/contact/submit.js +++ b/src/routes/contact/submit.js @@ -2,17 +2,6 @@ import 'dotenv/config'; import sgMail from '@sendgrid/mail'; 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 }) { const body = await request.json(); const { HCAPTCHA_SECRET, FORM_FROM_EMAIL, FORM_TO_EMAIL } = process.env; @@ -44,8 +33,7 @@ export async function post({ request }) { `, }; - const messageSent = await sgMail - .send(msg) + const messageSent = await sgMail.send(msg) .then(() => true) .catch((error) => { console.error(error);