Skip to content

Commit 20244d5

Browse files
committed
Merge branch 'master' of github.com:benjamint08/probun
2 parents 5b44704 + 26be720 commit 20244d5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ ProBun, a better web server for Bun. ProBun aims to enhance your web development
1313

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

1818
export async function GET(req: Request): Promise<Response> {
19-
return Success("Hello, World!");
19+
const c = Context(req)
20+
21+
return c.json({ hello: "world" });
2022
}
2123
```
2224

0 commit comments

Comments
 (0)