feat: url scraper to recipe

This commit is contained in:
2025-01-18 00:46:05 +01:00
parent 6112d007c2
commit d4cccacc28
24 changed files with 1349 additions and 137 deletions

12
routes/api/cache.ts Normal file
View File

@ -0,0 +1,12 @@
import { Handlers } from "$fresh/server.ts";
import { documentTable } from "@lib/db/schema.ts";
import { db } from "@lib/db/sqlite.ts";
import { json } from "@lib/helpers.ts";
export const handler: Handlers = {
async DELETE() {
await db.delete(documentTable).run();
return json({ status: "ok" });
},
};