Added GET and POST routes.

This commit is contained in:
Daniel
2023-02-09 00:41:33 +03:30
parent e5ed2ec5db
commit 0bf1ec0d2a
12 changed files with 198 additions and 36 deletions
+8 -5
View File
@@ -1,7 +1,10 @@
import { useRouter } from "next/router";
import { useEffect } from "react";
export default function Home() {
return (
<div className="p-5">
<p className="text-3xl font-bold text-center mb-10">Linkwarden</p>
</div>
);
const router = useRouter();
useEffect(() => {
router.push("/dashboard");
}, []);
}