updated days

This commit is contained in:
2022-03-28 13:00:41 +01:00
parent edc5bdbe7c
commit dca4777b4c
2 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build",
"start": "next start", "start": "next build && next start",
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
+10 -7
View File
@@ -9,13 +9,16 @@ const FourOhFour = (props) => {
const router = useRouter(); const router = useRouter();
let numbDays = router.query.n; let numbDays = router.query.n;
return (
useEffect(() => { <div>
console.log("hello"); <Image
return axios.get("/api/days/99"); src={"/api/days/" + numbDays}
}); width="940"
height="788"
return <div>done</div>; alt="sleeps"
/>
</div>
);
}; };
export default FourOhFour; export default FourOhFour;