Add Season Page
This commit is contained in:
1 parent
cc1d1cdadf
commit
387686ad0f
13 files changed
+622
-36
No files matched your search
@@ -6,6 +6,7 @@ import { EntryId } from '../../shared/models/entryId.model';
|
||||
import { EntryRating } from '../../shared/models/entry-rating.model';
|
||||
import { Media } from '../../shared/models/media.model';
|
||||
import { ConfigService } from './config.service';
|
||||
import { Season } from '../../shared/models/season.model';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
@@ -32,6 +33,12 @@ export class EntryService {
|
||||
);
|
||||
}
|
||||
|
||||
getEntrySeasons(entryId: number) {
|
||||
return this.http.get<Season[]>(
|
||||
`${this.backend_apiUrl}/${this.apiAction}/${entryId}/seasons`
|
||||
);
|
||||
}
|
||||
|
||||
// update entry
|
||||
updateEntry(entryId: number, entryData: any) {
|
||||
return this.http.put<Entry>(
|
||||
|
||||
@@ -38,6 +38,12 @@ export class EpisodeSeenService {
|
||||
);
|
||||
}
|
||||
|
||||
getEpisodeSeenBySeasonId(entryId: number) {
|
||||
return this.http.get<any[]>(
|
||||
`${this.backend_apiUrl}/${this.apiAction}/by-season/${entryId}`
|
||||
);
|
||||
}
|
||||
|
||||
// get episode-seen by episode Id
|
||||
getEpisodeSeenById(id: number) {
|
||||
return this.http.get<EpisodeSeen[]>(
|
||||
|
||||
Reference in new issue
Block a user