added weekstoday

This commit is contained in:
2022-03-17 09:17:05 +00:00
parent bfa91eb346
commit 2d53141f42
3 changed files with 104 additions and 4 deletions
+22
View File
@@ -0,0 +1,22 @@
// 404.js
import Image from "next/image";
import { useRouter } from "next/router";
const FourOhFour = (props) => {
const router = useRouter();
let numbWeeks = router.query.n;
return (
<div>
<Image
src={"/api/weekstoday/" + numbWeeks}
width="940"
height="788"
alt="weeks"
/>
</div>
);
};
export default FourOhFour;