const std = @import("std"); const memora = @import("memora"); const Context = memora.Context; const Storage = memora.Storage; pub const access = .users; pub fn get(ctx: *Context) !memora.Stream { const name = ctx.request.head.target["/api/profile/image/load/".len..]; if (Storage.User.image(ctx.storage, name)) |file| { ctx.response.headers.content_type = "image/jpeg"; return .from_file(file); } return error.NotFound; }