Initial Recordings UI

This commit is contained in:
Jason Hunter
2021-06-05 07:30:18 -05:00
committed by Blake Blackshear
parent abbc608ee4
commit 5461308d30
14 changed files with 732 additions and 14 deletions
+5
View File
@@ -110,6 +110,11 @@ export function useEvent(eventId, fetchId) {
return useFetch(url, fetchId);
}
export function useRecording(camera, fetchId) {
const url = `/api/${camera}/recordings`;
return useFetch(url, fetchId);
}
export function useConfig(searchParams, fetchId) {
const url = `/api/config${searchParams ? `?${searchParams.toString()}` : ''}`;
return useFetch(url, fetchId);