mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-12-14 03:36:01 +00:00
wip: finalize implementation of SSR
This commit is contained in:
@@ -30,7 +30,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||
if (token) {
|
||||
try {
|
||||
const averageElementResponse = await fetch(
|
||||
`http://scraperr_api:8000/api/statistics/get-average-element-per-link`,
|
||||
`http://scraperr_api:8000/statistics/get-average-element-per-link`,
|
||||
{
|
||||
headers: { Authorization: `Bearer ${token}` },
|
||||
}
|
||||
@@ -39,7 +39,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||
averageElement = await averageElementResponse.json();
|
||||
|
||||
const averageJobResponse = await fetch(
|
||||
`http://scraperr_api:8000/api/statistics/get-average-jobs-per-day`,
|
||||
`http://scraperr_api:8000/statistics/get-average-jobs-per-day`,
|
||||
{
|
||||
headers: { Authorization: `Bearer ${token}` },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user