updated api calls with copyright and routes

This commit is contained in:
2023-02-16 12:53:08 +00:00
parent a25bded298
commit 9e66c069a6
10 changed files with 108 additions and 10 deletions
+24
View File
@@ -0,0 +1,24 @@
// 404.js
import Image from "next/image";
import { useRouter } from "next/router";
import { useState, useEffect, useRef } from "react";
import axios from "axios";
const FourOhFour = (props) => {
const router = useRouter();
let numbDays = router.query.days;
return (
<div>
<Image
src={"/api/days/" + numbDays}
width="940"
height="788"
alt="sleeps"
/>
</div>
);
};
export default FourOhFour;