feat: move some stuff around
This commit is contained in:
9
routes/api/cache/index.ts
vendored
Normal file
9
routes/api/cache/index.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
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");
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user