feat: set up backend

This commit is contained in:
2026-09-04 14:57:40 +02:00
parent c123673ca5
commit 4d4ddfe255
10 changed files with 182 additions and 16 deletions
+26
View File
@@ -0,0 +1,26 @@
import {
Playlist
} from '../../dtype/file';
import {
Response
} from 'express';
export interface Room {
'playlist': Playlist;
'playing': boolean;
'index': number;
'start': number;
'token': string;
'lastUpdate': number;
/**
* This is used to determine if the playlist needs to be sent in polling mode
*/
'lastPlaylistUpdate': number;
'clients': Response[]
}
export interface RoomStore {
[id: string]: Room
}