feat: trying to add hashes to scripts
This commit is contained in:
13
routes/admin/cache/index.tsx
vendored
13
routes/admin/cache/index.tsx
vendored
@@ -1,14 +1,13 @@
|
||||
import { MainLayout } from "@components/layouts/main.tsx";
|
||||
import { Handlers, PageProps } from "$fresh/server.ts";
|
||||
import { PageProps } from "fresh";
|
||||
import { getCacheInfo } from "@lib/cache.ts";
|
||||
import { define } from "../../../utils.ts";
|
||||
|
||||
export const handler: Handlers<
|
||||
{ cacheInfo: ReturnType<typeof getCacheInfo> }
|
||||
> = {
|
||||
GET(_, ctx) {
|
||||
return ctx.render({ cacheInfo: getCacheInfo() });
|
||||
export const handler = define.handlers({
|
||||
GET() {
|
||||
return { data: { cacheInfo: getCacheInfo() } };
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
export default function Greet(
|
||||
props: PageProps<
|
||||
|
||||
Reference in New Issue
Block a user