From 471ca527bb7805cb0a9b348a4fbfbd128926a2fb Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Fri, 16 Dec 2022 02:00:26 -0800 Subject: [PATCH] Rename mkcol -> mkdir --- src/main/controllers/web.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/controllers/web.zig b/src/main/controllers/web.zig index 835e64e..fe74618 100644 --- a/src/main/controllers/web.zig +++ b/src/main/controllers/web.zig @@ -279,13 +279,13 @@ const drive = struct { }; const Action = enum { - mkcol, + mkdir, }; pub const Body = struct { action: Action, data: union(Action) { - mkcol: struct { + mkdir: struct { name: []const u8, }, }, @@ -294,7 +294,7 @@ const drive = struct { pub fn handler(req: anytype, res: anytype, srv: anytype) !void { if (req.body.action != req.body.data) return error.BadRequest; switch (req.body.data) { - .mkcol => |data| { + .mkdir => |data| { _ = try srv.driveMkdir(req.args.path, data.name); // TODO