Renamed methods. Initial work on realtime dashboard.

This commit is contained in:
Mike Cao 2020-10-08 15:02:48 -07:00
parent b4ea70a67c
commit e64a555652
16 changed files with 246 additions and 86 deletions

View file

@ -19,7 +19,7 @@ export default function MetricsBar({ websiteId, token, className }) {
} = usePageQuery();
const { data, error, loading } = useFetch(
`/api/website/${websiteId}/metrics`,
`/api/website/${websiteId}/stats`,
{
start_at: +startDate,
end_at: +endDate,