mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 22:16:08 +00:00
Comment custom route - use as example only
This commit is contained in:
parent
3882eba2f3
commit
179b5e77c3
@ -177,8 +177,9 @@ pub const jetzig_options = struct {
|
|||||||
};
|
};
|
||||||
|
|
||||||
pub fn init(app: *jetzig.App) !void {
|
pub fn init(app: *jetzig.App) !void {
|
||||||
|
_ = app;
|
||||||
// Example custom route:
|
// Example custom route:
|
||||||
app.route(.GET, "/custom/:id/foo/bar", @import("app/views/custom/foo.zig"), .bar);
|
// app.route(.GET, "/custom/:id/foo/bar", @import("app/views/custom/foo.zig"), .bar);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn main() !void {
|
pub fn main() !void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user