From fce24e3a4c49d06c784da50e2044a6a9a048e2cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20R=C3=ADos?= Date: Wed, 1 May 2024 21:01:24 +0200 Subject: [PATCH] fix: react all functionality (#18) * fix: use `happy-headers` auth * fix: update `fresh` * fix: remove headers from `readme` * fix: changelog `width` * fix: remove `search` icon * fix: update`google` api keys * fix: remove `red` background * fix: broken `react` functionality --- routes/api/reactAll.ts | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/routes/api/reactAll.ts b/routes/api/reactAll.ts index 4bd8453..2e4bc48 100644 --- a/routes/api/reactAll.ts +++ b/routes/api/reactAll.ts @@ -1,3 +1,4 @@ +import getHeaders from "happy-headers"; import { FreshContext } from "$fresh/server.ts"; import { FeedResp } from "~/types.ts"; @@ -24,11 +25,7 @@ export const handler = async ( { headers: { authorization: `Bearer ${access_token}`, - "bereal-app-version-code": "14549", - "bereal-signature": - "MToxNzA3NDgwMjI4OvR2hbFOdgnyAz1bfiCp68ul5sVZiHnv+NAZNySEcBfD", - "bereal-device-id": "937v3jb942b0h6u9", - "bereal-timezone": "Europe/Paris", + ...getHeaders(), }, }, ); @@ -60,13 +57,7 @@ export const handler = async ( { headers: { authorization: `Bearer ${access_token}`, - "bereal-app-version-code": "14549", - "bereal-signature": - "MToxNzA3NDgwMjI4OvR2hbFOdgnyAz1bfiCp68ul5sVZiHnv+NAZNySEcBfD", - "bereal-device-id": "937v3jb942b0h6u9", - "bereal-timezone": "Europe/Paris", - "content-type": "application/json", - "accept": "application/json", + ...getHeaders(), }, method: "PUT", body: JSON.stringify({ emoji: `${emoji}` }),