From b2e643898500405e92cdc29aa589eadf0649d01e Mon Sep 17 00:00:00 2001 From: Niki Wix Skaarup Date: Sun, 6 Apr 2025 02:09:33 +0200 Subject: [PATCH 1/2] readme --- README.md | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/README.md b/README.md index 688c87e..faf56fd 100644 --- a/README.md +++ b/README.md @@ -1,15 +1 @@ -# Elysia with Bun runtime - -## Getting Started -To get started with this template, simply paste this command into your terminal: -```bash -bun create elysia ./elysia-example -``` - -## Development -To start the development server run: -```bash -bun run dev -``` - -Open http://localhost:3000/ with your browser to see the result. \ No newline at end of file +# Progress tracker api v2 From 3287e3721c5d5b803334fc8ed78f612ebac03a81 Mon Sep 17 00:00:00 2001 From: Niki Wix Skaarup Date: Sun, 6 Apr 2025 02:11:42 +0200 Subject: [PATCH 2/2] header --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index cf27861..762f515 100644 --- a/src/server.ts +++ b/src/server.ts @@ -138,7 +138,7 @@ async function getEntryFromReq(req: Request) { } function isAuthenticated(req: Request) { - const bearer = req.headers.get('Bearer'); + const bearer = req.headers.get('bearer'); if (!bearer) return false; return bearer === env.BEARER_TOKEN;