mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-03 11:29:40 +05:00
Changelog:
Backend: - ADD Search API - EXTEND Release API
This commit is contained in:
parent
642277face
commit
ed21441f9f
4 changed files with 93 additions and 2 deletions
14
backend/modules/pages/search.py
Normal file
14
backend/modules/pages/search.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
import json
|
||||
|
||||
from fastapi import APIRouter
|
||||
from fastapi import Request
|
||||
from modules.proxy import apiRequest
|
||||
from modules.proxy import ENDPOINTS
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.post("", 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