From 921a1887c43d9a22ac6fba2b5fa27b803e1cf974 Mon Sep 17 00:00:00 2001 From: flopetautschnig <69145145+floscodes@users.noreply.github.com> Date: Mon, 24 Apr 2023 14:13:48 +0200 Subject: [PATCH] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index afe61ca..7e0a0b0 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,10 @@ A simple framework for writing web services in zig. ## Create a simple web app ```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; fn index(req: Request) Response { @@ -28,4 +31,4 @@ pub fn main() !void { try Server.listen("0.0.0.0", 8080, &rt, allocator); } -``` \ No newline at end of file +```