got frontend working with backend project

This commit is contained in:
2024-11-27 00:35:32 -05:00
parent 66ba89c0b1
commit 0093589a4b
11 changed files with 250 additions and 63 deletions

View File

@ -1,3 +1,16 @@
export default function PostIdentifier() {
return null;
import { FreshContext, Handlers, PageProps } from "$fresh/server.ts";
import { useFetch } from "../../lib/useFetch.tsx";
interface PostResponse {
post_id: number;
first_nane: string;
last_name: string;
title: string;
body: string;
created_at: string;
}
export default function PostIdentifier(props: PageProps) {
console.log(props.data);
return <div>BLOG POST #{props.params.id}</div>;
}