summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-07-30 22:05:36 +0100
committerMartin Ashby <martin@ashbysoft.com>2023-07-30 22:05:36 +0100
commit292e1bf1692091fa218ced45a8b49fc799a2759a (patch)
treec91dc15e637c81e1ffb05b340922e1ffe3bb0e4e /src/main.zig
parent1fd4ff689da6cdd253b13c9da8eaf00f49eb53eb (diff)
downloadzigwebserver-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.zig5
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;
+}