const std = @import("std"); const jetzig = @import("jetzig"); pub fn post(request: *jetzig.Request) !jetzig.View { var root = try request.data(.object); const params = try request.params(); const id = params.getT(.integer, "song_id"); const review = params.getT(.string, "review"); try root.put("song_id", id); try root.put("review", review); return request.render(.created); }