mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 15:14:08 +00:00
fix #4 (wrong use of std.mem.span -> examples don't build)
This commit is contained in:
parent
ae1bfbcba0
commit
0c7b09566b
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ fn dynamic_site(r: zap.SimpleRequest) void {
|
|||
"<html><body><h1>Hello # {d} from DYNAMIC ZAP!!!</h1></body></html>",
|
||||
.{dynamic_counter},
|
||||
) catch "ERROR";
|
||||
_ = r.sendBody(std.mem.span(filled_buf));
|
||||
_ = r.sendBody(filled_buf);
|
||||
}
|
||||
|
||||
fn setup_routes(a: std.mem.Allocator) !void {
|
||||
|
|
|
@ -10,7 +10,7 @@ pub fn main() !void {
|
|||
var listener = zap.SimpleHttpListener.init(.{
|
||||
.port = 3000,
|
||||
.on_request = on_request,
|
||||
.public_folder = std.mem.span("examples/serve"),
|
||||
.public_folder = "examples/serve",
|
||||
.log = true,
|
||||
});
|
||||
try listener.listen();
|
||||
|
|
Loading…
Add table
Reference in a new issue