CHG rename visual endpoints on page for new scheme
@@ -21,32 +21,32 @@ import standardErrorHandler from '../../../../utils/standardErrorHandler';
const visuals = [
{
title: 'Anubis LMS Registered Users Last Year',
- url: `/api/public/visuals/users/users-365-1`,
+ url: `/api/public/visuals/users/365/1`,
filename: 'anubis-registered-users-365-1.png',
},
{
title: 'Anubis LMS Active Users Per Day In Last 2 Weeks',
- url: `/api/public/visuals/usage/active-14-1`,
+ url: `/api/public/visuals/active/14/1`,
filename: 'anubis-active-users-14-1.png',
},
{
title: 'Anubis LMS Active Users Per Week In Last 3 Month',
- url: `/api/public/visuals/usage/active-90-7`,
+ url: `/api/public/visuals/active/90/7`,
filename: 'anubis-active-users-90-7.png',
},
{
title: 'Anubis LMS Active Users Per Day In Last Half Year',
- url: `/api/public/visuals/usage/active-180-1`,
+ url: `/api/public/visuals/active/180/1`,
filename: 'anubis-active-users-180-1.png',
},
{
title: 'Anubis LMS Registered Users Last Year - By Month',
- url: `/api/public/visuals/users/users-365-30`,
+ url: `/api/public/visuals/users/365/30`,
filename: 'anubis-registered-users-365-30.png',
},
{
title: 'Anubis Playgrounds Usage Over Time',
- url: `/api/public/visuals/usage/playgrounds`,
+ url: `/api/public/visuals/playgrounds`,
filename: 'anubis-playground-usage.png',
},
];
@@ -134,14 +134,14 @@ const Visuals = () => {
color={'primary'}
size={'large'}
component={'a'}
- href={`/api/public/visuals/usage/${selected?.id}`}
+ href={`/api/public/visuals/course/${selected?.id}`}
download={`anubis-${selected?.id}-usage.png`}
>
Download
</Button>
<CardMedia
className={classes.usage}
- image={`/api/public/visuals/usage/${selected?.id}`}
+ image={`/api/public/visuals/course/${selected?.id}`}
title={'Anubis Usage'}
/>
</Card>
