aboutsummaryrefslogtreecommitdiff
path: root/src/api/hello-param.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/hello-param.zig')
-rw-r--r--src/api/hello-param.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/hello-param.zig b/src/api/hello-param.zig
index f4de1dd..b67212b 100644
--- a/src/api/hello-param.zig
+++ b/src/api/hello-param.zig
@@ -10,5 +10,7 @@ pub const ctx: Ctx = .{
fn get(request: Ctx.Request) Response {
const value = request.params.value.as(usize) catch return .badRequest(.string("parameter needs to be an int"));
- return .okOrError(.json(request.arena, .{ .value = value, }));
+ return .okOrError(.json(request.arena, .{
+ .value = value,
+ }));
}