jetzig/demo/src/app/routes.zig
Bob Farrell 31927cdb6b Static routes
Generate views defined with `request: *jetzig.http.StaticRequest` as
static content into `static/` directory so that exported JSON and HTML
can be rendered direct from disk, skipping runtime rendering.
2024-02-17 15:28:27 +00:00

21 lines
512 B
Zig

pub const routes = struct {
pub const static = .{
.{
.name = "root_index",
.action = "index",
.uri_path = "/",
.template = "root_index",
.function = @import("root.zig").index,
},
};
pub const dynamic = .{
.{
.name = "quotes_get",
.action = "get",
.uri_path = "/quotes",
.template = "quotes_get",
.function = @import("quotes.zig").get,
},
};
};