10 lines
213 B
TypeScript
Raw Normal View History

2023-08-01 18:35:35 +02:00
import { Handlers } from "$fresh/server.ts";
import * as cache from "@lib/cache/cache.ts";
export const handler: Handlers = {
async DELETE() {
await cache.clearAll();
return new Response("OK");
},
};