Skip to content

Commit

Permalink
Merge branch 'master' of github.com:benjamint08/probun
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamint08 committed May 29, 2024
2 parents 5b44704 + 26be720 commit 20244d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ ProBun, a better web server for Bun. ProBun aims to enhance your web development

```typescript
// routes/index.ts - This will handle localhost:3000/
import { Success } from "probun";
import { Context } from "probun";

export async function GET(req: Request): Promise<Response> {
return Success("Hello, World!");
const c = Context(req)

return c.json({ hello: "world" });
}
```

Expand Down

0 comments on commit 20244d5

Please sign in to comment.