mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-06 14:33:53 +05:00
anix/refactor: index category page data fetcher
This commit is contained in:
parent
fd0ce8cb94
commit
a615af836b
2 changed files with 13 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Filter, FilterDefault } from "#/api/utils";
|
||||
import { FilterDefault } from "#/api/utils";
|
||||
|
||||
export const ListLast = {
|
||||
name: "Последнее",
|
||||
|
@ -24,3 +24,11 @@ export const ListFilms = {
|
|||
name: "Фильмы",
|
||||
filter: { ...FilterDefault, category_id: 2, status_id: null },
|
||||
};
|
||||
|
||||
export const slugToFilter = {
|
||||
last: ListLast,
|
||||
ongoing: ListOngoing,
|
||||
announce: ListAnnounce,
|
||||
finished: ListFinished,
|
||||
films: ListFilms,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue