mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 18:09:40 +05:00
frontend: add search & search history
This commit is contained in:
parent
6b88601417
commit
e3a79c6864
5 changed files with 145 additions and 17 deletions
|
@ -8,7 +8,7 @@ from modules.proxy import ENDPOINTS
|
|||
router = APIRouter()
|
||||
|
||||
|
||||
@router.post("", summary="Search for a release")
|
||||
@router.get("", summary="Search for a release")
|
||||
async def Search(request: Request, query: str, page: int = 0):
|
||||
data = json.dumps({"query": query, "searchBy": 0})
|
||||
return await apiRequest(request, ENDPOINTS["search"], page, data=data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue