Skip to content

Commit

Permalink
fix(examples): fix incorrect paths to example files
Browse files Browse the repository at this point in the history
  • Loading branch information
mookums committed Nov 16, 2024
1 parent b5b8b83 commit 09b12c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/https.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const Tardy = tardy.Tardy(.auto);
const Runtime = tardy.Runtime;
const Server = http.Server(.{ .tls = .{
.cert = .{ .file = .{ .path = "./examples/http/tls/certs/cert.pem" } },
.key = .{ .file = .{ .path = "./examples/http/tls/certs/key.pem" } },
.cert = .{ .file = .{ .path = "./examples/tls/certs/cert.pem" } },
.key = .{ .file = .{ .path = "./examples/tls/certs/key.pem" } },
.cert_name = "CERTIFICATE",
.key_name = "EC PRIVATE KEY",
} });
Expand Down
2 changes: 1 addition & 1 deletion examples/fs/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn main() !void {
}
}.handler_fn));

try router.serve_fs_dir("/static", "./examples/http/fs/static");
try router.serve_fs_dir("/static", "./examples/fs/static");

try t.entry(
&router,
Expand Down
4 changes: 2 additions & 2 deletions examples/tls/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const Tardy = tardy.Tardy(.auto);
const Runtime = tardy.Runtime;

const Server = http.Server(.{ .tls = .{
.cert = .{ .file = .{ .path = "./examples/http/tls/certs/cert.pem" } },
.key = .{ .file = .{ .path = "./examples/http/tls/certs/key.pem" } },
.cert = .{ .file = .{ .path = "./examples/tls/certs/cert.pem" } },
.key = .{ .file = .{ .path = "./examples/tls/certs/key.pem" } },
.cert_name = "CERTIFICATE",
.key_name = "EC PRIVATE KEY",
} });
Expand Down

0 comments on commit 09b12c5

Please sign in to comment.