diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-06-06 16:03:05 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-06-06 16:03:05 +0200 |
| commit | 0eb3273f257e096c398ec324a1d2d755ec19a43d (patch) | |
| tree | d165d99669f4569b457cbe6e8004aa50b7e3c6af /src/api/hello-param.zig | |
| parent | 1d6e34388d9d792fd184c8b9e0fb11fb9b7e14f9 (diff) | |
make style-guide conform
Diffstat (limited to 'src/api/hello-param.zig')
| -rw-r--r-- | src/api/hello-param.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/hello-param.zig b/src/api/hello-param.zig index ba798af..f4de1dd 100644 --- a/src/api/hello-param.zig +++ b/src/api/hello-param.zig @@ -8,7 +8,7 @@ pub const ctx: Ctx = .{ }; fn get(request: Ctx.Request) Response { - const value = request.params.value.as(usize) catch return .bad_request(.string("parameter needs to be an int")); + const value = request.params.value.as(usize) catch return .badRequest(.string("parameter needs to be an int")); - return .ok_or_error(.json(request.arena, .{ .value = value, })); + return .okOrError(.json(request.arena, .{ .value = value, })); } |