aboutsummaryrefslogtreecommitdiff
path: root/src/api/hello-param.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-08-03 17:07:05 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-08-03 17:07:05 +0200
commit0bc6d195195d1e126b535554a4a4105468cd06d9 (patch)
tree6a3288e56bd306db499e597fc53762d05a7c3b82 /src/api/hello-param.zig
parent77642e5081b4ed2516dc08b3ef611c3c444ec6c5 (diff)
add tokenizer for whitespaces in js
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,
+ }));
}