✨(frontend) implement API endpoint for recording details
Add new API call to retrieve detailed information about recordings. Enables frontend to access metadata and status information needed for download interfaces.
This commit is contained in:
committed by
aleb_the_flash
parent
b927be9f16
commit
a8053b46cd
15
src/frontend/src/features/recording/api/fetchRecording.ts
Normal file
15
src/frontend/src/features/recording/api/fetchRecording.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { fetchApi } from '@/api/fetchApi'
|
||||
import { ApiRoom } from '@/features/rooms/api/ApiRoom'
|
||||
import { RecordingMode } from '@/features/recording'
|
||||
|
||||
export type RecordingApi = {
|
||||
id: string
|
||||
room: Pick<ApiRoom, 'id' | 'name' | 'slug' | 'access_level'>
|
||||
created_at: string
|
||||
key: string
|
||||
mode: RecordingMode
|
||||
}
|
||||
|
||||
export const fetchRecording = ({ recordingId }: { recordingId?: string }) => {
|
||||
return fetchApi<RecordingApi>(`/recordings/${recordingId}/`)
|
||||
}
|
||||
Reference in New Issue
Block a user