simple sign up page
This commit is contained in:
+3
-18
@@ -1,24 +1,9 @@
|
||||
'use client';
|
||||
|
||||
import { PostRequest } from '@/platform';
|
||||
|
||||
export default function Home() {
|
||||
const test: PostRequest = {
|
||||
content: 'Hello, World - Idk, Made this post for testing my API lol',
|
||||
platforms: [],
|
||||
};
|
||||
|
||||
return (
|
||||
<button
|
||||
className="w-max mx-auto my-auto"
|
||||
onClick={async () => {
|
||||
await fetch('/api/posts', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(test),
|
||||
});
|
||||
}}
|
||||
>
|
||||
Post now
|
||||
</button>
|
||||
<div>
|
||||
<h1 className="text-2xl">The ultimate social media manager</h1>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user