added blog post page, reverted back to flex blog landing, added types
This commit is contained in:
17
frontend/types/index.ts
Normal file
17
frontend/types/index.ts
Normal file
@ -0,0 +1,17 @@
|
||||
export type Post = {
|
||||
post_id: number;
|
||||
author_id: number;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
title: string;
|
||||
body: string;
|
||||
created_at: string;
|
||||
};
|
||||
|
||||
export type Author = {
|
||||
author_id: number;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
bio: string;
|
||||
image?: string;
|
||||
};
|
Reference in New Issue
Block a user