feat: add genres filter to browse page

This commit is contained in:
2026-05-02 16:08:46 +02:00
committed by Mikkel Elvers
parent 4869bc055d
commit 056b5ad93e
4 changed files with 57 additions and 5 deletions

View File

@@ -143,6 +143,15 @@ type AnimeResponse struct {
Data Anime `json:"data"`
}
type Genre struct {
MalID int `json:"mal_id"`
Name string `json:"name"`
}
type GenresResponse struct {
Data []Genre `json:"data"`
}
type SearchResponse struct {
Data []Anime `json:"data"`
Pagination Pagination `json:"pagination"`