added garys api endpoint

This commit is contained in:
2021-08-31 10:23:43 +01:00
parent 8a512f6c46
commit adcff32d73
4 changed files with 105 additions and 17 deletions
+4
View File
@@ -18,6 +18,7 @@ import { setMyRepresentations } from "../../store/myRepresentations/action";
import { setWatchedCases } from "../../store/watchedCases/action";
import { setAwaitingSubmission } from "../../store/awaitingSubmission/action";
import {
getToken,
getMyCases,
getMyRepresentations,
getWatchedCases,
@@ -75,6 +76,9 @@ export const getServerSideProps = wrapper.getServerSideProps(
"public, s-maxage=604800, stale-while-revalidate"
);
const token = await getToken();
console.log(token);
const [
myCases,
myRepresentations,