mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 22:16:08 +00:00

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.
21 lines
512 B
Zig
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,
|
|
},
|
|
};
|
|
}; |