got frontend working with backend project
This commit is contained in:
@ -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>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user