From 0eb3273f257e096c398ec324a1d2d755ec19a43d Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sat, 6 Jun 2026 16:03:05 +0200 Subject: make style-guide conform --- src/api/hello-body.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api/hello-body.zig') 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, })); } -- cgit v1.2.3-70-g09d2