diff options
author | Martin Ashby <martin@ashbysoft.com> | 2023-07-30 22:05:36 +0100 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2023-07-30 22:05:36 +0100 |
commit | 292e1bf1692091fa218ced45a8b49fc799a2759a (patch) | |
tree | c91dc15e637c81e1ffb05b340922e1ffe3bb0e4e /src/main.zig | |
parent | 1fd4ff689da6cdd253b13c9da8eaf00f49eb53eb (diff) | |
download | zigwebserver-292e1bf1692091fa218ced45a8b49fc799a2759a.tar.gz zigwebserver-292e1bf1692091fa218ced45a8b49fc799a2759a.tar.bz2 zigwebserver-292e1bf1692091fa218ced45a8b49fc799a2759a.tar.xz zigwebserver-292e1bf1692091fa218ced45a8b49fc799a2759a.zip |
Import server and router from ziggit to zigwebserver for reuse in other
projects.
Diffstat (limited to 'src/main.zig')
-rw-r--r-- | src/main.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index a37f6a0..54e6b4b 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1,4 +1,5 @@ const std = @import("std"); +const zws = @import("zigwebserver.zig"); // extremely basic http file server pub fn main() !void { @@ -61,3 +62,7 @@ fn serve_error(res: *std.http.Server.Response, status: std.http.Status) !void { \\ <!doctype html><html><body>{s}</body></html> , .{phrase}); } + +test { + _ = zws; +} |