aboutsummaryrefslogtreecommitdiff
path: root/src/api/hello-json.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/hello-json.zig')
-rw-r--r--src/api/hello-json.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/hello-json.zig b/src/api/hello-json.zig
index 7c96c29..12f1e72 100644
--- a/src/api/hello-json.zig
+++ b/src/api/hello-json.zig
@@ -2,13 +2,13 @@ const http = @import("http");
const Context = http.handler.Context;
const Response = http.Response;
-const Ctx = Context(.{ "hello-json" });
+const Ctx = Context(.{"hello-json"});
pub const ctx: Ctx = .{
.get = get,
};
fn get(request: Ctx.Request) Response {
- return .ok_or_error(.json(request.arena, .{
+ return .okOrError(.json(request.arena, .{
.value = 42,
.message = "Hello, Json!",
}));