import { Handlers, PageProps } from "$fresh/server.ts"; import { MainLayout } from "@components/layouts/main.tsx"; import { Grid } from "@components/Grid.tsx"; import { IconArrowLeft } from "@components/icons.tsx"; import { getAllSeries, Series } from "@lib/resource/series.ts"; import { Card } from "@components/Card.tsx"; import { RedirectSearchHandler } from "@islands/Search.tsx"; import { KMenu } from "@islands/KMenu.tsx"; export const handler: Handlers = { async GET(_, ctx) { const movies = await getAllSeries(); return ctx.render(movies); }, }; export default function Greet(props: PageProps) { return (
Back

🍿 Movies

{props.data?.map((doc) => { return ( ); })}
); }