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

Implement `jetzig.http.Request.params()` which parses either a JSON request body or a query param string into a `jetzig.data.Value`. Allow configuring params for static site generation - configure an array of params for each endpoint which is then parsed at build time and a separate JSON and HTML output is generated for each by invoking the relevant view function and passing in resource ID/params. Params are stored in generated `routes.zig` for route matching at run time.
24 lines
657 B
Zig
24 lines
657 B
Zig
.{
|
|
.name = "sandbox-jetzig",
|
|
.version = "0.0.0",
|
|
.minimum_zig_version = "0.12.0",
|
|
.dependencies = .{
|
|
.jetzig = .{
|
|
.path = "../",
|
|
},
|
|
},
|
|
.paths = .{
|
|
// This makes *all* files, recursively, included in this package. It is generally
|
|
// better to explicitly list the files and directories instead, to insure that
|
|
// fetching from tarballs, file system paths, and version control all result
|
|
// in the same contents hash.
|
|
"",
|
|
// For example...
|
|
//"build.zig",
|
|
//"build.zig.zon",
|
|
//"src",
|
|
//"LICENSE",
|
|
//"README.md",
|
|
},
|
|
}
|