got frontend working with backend project
This commit is contained in:
1 parent
66ba89c0b1
commit
0093589a4b
11 files changed
+249
-62
No files matched your search
@@ -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