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 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;