Skip to content

Commit

Permalink
4
Browse files Browse the repository at this point in the history
  • Loading branch information
futurGH committed Dec 21, 2023
1 parent f062cc1 commit f8814e4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/routes/api/contact.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ const client = new SESClient({

export async function api(request: HydrogenRequest) {
console.log(request);
console.log(
JSON.stringify({
accessKeyId: env.SES_ACCESS_KEY_ID,
secretAccessKey: env.SES_ACCESS_KEY,
}),
);
console.log(JSON.stringify(env));
if (request.method === "GET") return new Response(null, { status: 302, headers: { Location: "/contact-us" } });
if (request.method !== "POST") return new Response(null, { status: 405 });

Expand Down

0 comments on commit f8814e4

Please sign in to comment.