blob: 1b2a3e244b902e713f407b36874e1aa315aeb5dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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 id = ctx.request.head.target["/api/image/load/".len..];
var image = Storage.Image { .id = id, .timestamp = null };
return .from_file(try image.file(ctx.storage));
}
|