aboutsummaryrefslogtreecommitdiff
path: root/src/api/hello-body.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-06-06 16:03:05 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-06-06 16:03:05 +0200
commit0eb3273f257e096c398ec324a1d2d755ec19a43d (patch)
treed165d99669f4569b457cbe6e8004aa50b7e3c6af /src/api/hello-body.zig
parent1d6e34388d9d792fd184c8b9e0fb11fb9b7e14f9 (diff)
make style-guide conform
Diffstat (limited to 'src/api/hello-body.zig')
-rw-r--r--src/api/hello-body.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/hello-body.zig b/src/api/hello-body.zig
index 2e5a09e..43afb87 100644
--- a/src/api/hello-body.zig
+++ b/src/api/hello-body.zig
@@ -12,9 +12,9 @@ const Body = struct {
};
fn post(request: Ctx.Request) Response {
- const body = request.json(Body) catch return .bad_request(.void);
+ const body = request.json(Body) catch return .badRequest(.void);
- return .ok_or_error(.json(request.arena, .{
+ return .okOrError(.json(request.arena, .{
.value = body.value,
}));
}