feat: store documents in sqlite

This commit is contained in:
2025-01-05 21:58:07 +01:00
parent 20a2781214
commit d0d49b217d
23 changed files with 1476 additions and 65 deletions

View File

@ -1,5 +1,5 @@
import { FreshContext, Handlers } from "$fresh/server.ts";
import * as cache from "@lib/cache/image.ts";
import { getImageContent } from "@lib/image.ts";
import { SILVERBULLET_SERVER } from "@lib/env.ts";
import { createLogger } from "@lib/log.ts";
import { isLocalImage } from "@lib/string.ts";
@ -83,7 +83,7 @@ const GET = async (
log.debug("Processing image request:", { imageUrl, params });
const image = await cache.getImageContent(imageUrl, params);
const image = await getImageContent(imageUrl, params);
return new Response(image.content, {
headers: {