Update README.md
This commit is contained in:
parent
2adcceb91b
commit
921a1887c4
1 changed files with 5 additions and 2 deletions
|
@ -4,7 +4,10 @@ A simple framework for writing web services in zig.
|
||||||
## Create a simple web app
|
## Create a simple web app
|
||||||
|
|
||||||
```zig
|
```zig
|
||||||
usingnamespace @import("zerve");
|
const zrv = @import("zerve");
|
||||||
|
const Request = zrv.Request;
|
||||||
|
const Response = zrv.Response;
|
||||||
|
const Server = zrv.Server;
|
||||||
const allocator = std.heap.page_allocator;
|
const allocator = std.heap.page_allocator;
|
||||||
|
|
||||||
fn index(req: Request) Response {
|
fn index(req: Request) Response {
|
||||||
|
|
Loading…
Add table
Reference in a new issue