mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 15:14:08 +00:00
Improve code comment in router.zig
This commit is contained in:
parent
8ecceba81e
commit
8654ad8310
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ pub fn deinit(self: *Router) void {
|
|||
}
|
||||
|
||||
/// Call this to add a route with an unbound handler: a handler that is not member of a struct.
|
||||
/// To be precise: a handler that doesn't take an instance pointer as first argument.
|
||||
pub fn handle_func_unbound(self: *Router, path: []const u8, h: zap.HttpRequestFn) !void {
|
||||
if (path.len == 0) {
|
||||
return RouterError.EmptyPath;
|
||||
|
|
Loading…
Add table
Reference in a new issue