Compare commits

..

2 commits

Author SHA1 Message Date
3287e3721c
header 2025-04-06 02:11:42 +02:00
b2e6438985
readme 2025-04-06 02:09:33 +02:00
2 changed files with 2 additions and 16 deletions

View file

@ -1,15 +1 @@
# Elysia with Bun runtime # Progress tracker api v2
## 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.

View file

@ -138,7 +138,7 @@ async function getEntryFromReq(req: Request) {
} }
function isAuthenticated(req: Request) { function isAuthenticated(req: Request) {
const bearer = req.headers.get('Bearer'); const bearer = req.headers.get('bearer');
if (!bearer) return false; if (!bearer) return false;
return bearer === env.BEARER_TOKEN; return bearer === env.BEARER_TOKEN;