Compare commits
2 commits
519b43e9f8
...
3287e3721c
Author | SHA1 | Date | |
---|---|---|---|
3287e3721c | |||
b2e6438985 |
2 changed files with 2 additions and 16 deletions
16
README.md
16
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.
|
||||
# Progress tracker api v2
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue