chore: update Angular cache files and TypeScript build info
This commit is contained in:
@@ -8,6 +8,7 @@ export interface LikedVideoItem {
|
||||
title?: string;
|
||||
thumbnail?: string;
|
||||
last_watched_at?: string | null;
|
||||
created_at?: string;
|
||||
}
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
@@ -29,10 +30,10 @@ export class LikesService {
|
||||
return this.http.get<LikedVideoItem[]>(`${this.apiBase()}/user/likes`, { params, withCredentials: true });
|
||||
}
|
||||
|
||||
like(provider: string, videoId: string): Observable<{ provider: string; video_id: string }> {
|
||||
like(provider: string, videoId: string, title?: string, thumbnail?: string): Observable<{ provider: string; video_id: string }> {
|
||||
return this.http.post<{ provider: string; video_id: string }>(
|
||||
`${this.apiBase()}/user/likes`,
|
||||
{ provider, videoId },
|
||||
{ provider, videoId, title, thumbnail },
|
||||
{ withCredentials: true }
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user